From c722c99f9e67183b075bcf958b16e22a8e5f1e23 Mon Sep 17 00:00:00 2001 From: Corwin Kuiper Date: Tue, 13 Jul 2021 19:17:08 +0100 Subject: [PATCH] set cpu targets for asm and rust --- agb/.cargo/config.toml | 2 +- agb/build.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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")