set cpu targets for asm and rust

This commit is contained in:
Corwin Kuiper 2021-07-13 19:17:08 +01:00
parent 25b60010f8
commit c722c99f9e
2 changed files with 2 additions and 2 deletions

View file

@ -6,5 +6,5 @@ build-std-features = ["compiler-builtins-mem"]
target = "thumbv4t-none-eabi"
[target.thumbv4t-none-eabi]
rustflags = ["-Clink-arg=-Tgba.ld"]
rustflags = ["-Clink-arg=-Tgba.ld", "-Ctarget-cpu=arm7tdmi"]
runner = "mgba-test-runner"

View file

@ -11,7 +11,7 @@ fn main() {
let out = std::process::Command::new("arm-none-eabi-as")
.arg("-mthumb-interwork")
.arg("-mthumb")
.arg("-mcpu=arm7tdmi")
.arg("-g")
.args(&["-o", out_file_path.as_str()])
.arg("crt0.s")