From 8a9ce6fd8b7ed45c229893544139b3614f99f3e2 Mon Sep 17 00:00:00 2001 From: Corwin Date: Mon, 1 Aug 2022 17:36:35 +0100 Subject: [PATCH] modify all other configs to be able to compile with arm --- book/games/pong/.cargo/config.toml | 6 +++++- examples/hyperspace-roll/.cargo/config.toml | 6 +++++- examples/the-hat-chooses-the-wizard/.cargo/config.toml | 6 +++++- examples/the-purple-night/.cargo/config.toml | 6 +++++- template/.cargo/config.toml | 6 +++++- 5 files changed, 25 insertions(+), 5 deletions(-) diff --git a/book/games/pong/.cargo/config.toml b/book/games/pong/.cargo/config.toml index 76de9890..b3276236 100644 --- a/book/games/pong/.cargo/config.toml +++ b/book/games/pong/.cargo/config.toml @@ -6,5 +6,9 @@ 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-qt" + +[target.armv4t-none-eabi] +rustflags = ["-Clink-arg=-Tgba.ld", "-Ctarget-cpu=arm7tdmi"] runner = "mgba-qt" diff --git a/examples/hyperspace-roll/.cargo/config.toml b/examples/hyperspace-roll/.cargo/config.toml index 27b7c08d..cb5acfc0 100644 --- a/examples/hyperspace-roll/.cargo/config.toml +++ b/examples/hyperspace-roll/.cargo/config.toml @@ -7,5 +7,9 @@ sparse-registry = true target = "thumbv4t-none-eabi" [target.thumbv4t-none-eabi] -rustflags = ["-Clink-arg=-Tgba.ld"] +rustflags = ["-Clink-arg=-Tgba.ld", "-Ctarget-cpu=arm7tdmi"] +runner = "mgba-qt" + +[target.armv4t-none-eabi] +rustflags = ["-Clink-arg=-Tgba.ld", "-Ctarget-cpu=arm7tdmi"] runner = "mgba-qt" diff --git a/examples/the-hat-chooses-the-wizard/.cargo/config.toml b/examples/the-hat-chooses-the-wizard/.cargo/config.toml index 76de9890..b3276236 100644 --- a/examples/the-hat-chooses-the-wizard/.cargo/config.toml +++ b/examples/the-hat-chooses-the-wizard/.cargo/config.toml @@ -6,5 +6,9 @@ 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-qt" + +[target.armv4t-none-eabi] +rustflags = ["-Clink-arg=-Tgba.ld", "-Ctarget-cpu=arm7tdmi"] runner = "mgba-qt" diff --git a/examples/the-purple-night/.cargo/config.toml b/examples/the-purple-night/.cargo/config.toml index 76de9890..b3276236 100644 --- a/examples/the-purple-night/.cargo/config.toml +++ b/examples/the-purple-night/.cargo/config.toml @@ -6,5 +6,9 @@ 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-qt" + +[target.armv4t-none-eabi] +rustflags = ["-Clink-arg=-Tgba.ld", "-Ctarget-cpu=arm7tdmi"] runner = "mgba-qt" diff --git a/template/.cargo/config.toml b/template/.cargo/config.toml index 76de9890..b3276236 100644 --- a/template/.cargo/config.toml +++ b/template/.cargo/config.toml @@ -6,5 +6,9 @@ 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-qt" + +[target.armv4t-none-eabi] +rustflags = ["-Clink-arg=-Tgba.ld", "-Ctarget-cpu=arm7tdmi"] runner = "mgba-qt"