diff --git a/agb/.cargo/config.toml b/agb/.cargo/config.toml index a6201b44..f56bbdda 100644 --- a/agb/.cargo/config.toml +++ b/agb/.cargo/config.toml @@ -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" diff --git a/agb/build.rs b/agb/build.rs index 071b4389..9ad3c788 100644 --- a/agb/build.rs +++ b/agb/build.rs @@ -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")