From cc19a9b118a7883e98f91a5e67a5541bd4186339 Mon Sep 17 00:00:00 2001 From: lif <> Date: Thu, 18 Sep 2025 16:20:26 -0700 Subject: [PATCH] allow passing carguments --- make-rom.sh | 2 +- run-release.sh | 5 ++++- unit-tests.sh | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/make-rom.sh b/make-rom.sh index 814d3cc..f037a6d 100755 --- a/make-rom.sh +++ b/make-rom.sh @@ -9,7 +9,7 @@ export RUSTC_BOOTSTRAP=1 set -exo pipefail -cargo -Z build-std build --release +cargo -Z build-std build --release "$@" arm-none-eabi-objcopy -O binary "target/${target}/release/$name" "target/${name}.gba" diff --git a/run-release.sh b/run-release.sh index 402db85..0c4fce5 100755 --- a/run-release.sh +++ b/run-release.sh @@ -1,4 +1,7 @@ #!/bin/bash # terrible -env RUSTC_BOOTSTRAP=1 cargo -Z build-std run --release +export RUSTC_BOOTSTRAP=1 + +set -ex +exec cargo -Z build-std run --release "$@" diff --git a/unit-tests.sh b/unit-tests.sh index 921e8b5..68cc1e3 100755 --- a/unit-tests.sh +++ b/unit-tests.sh @@ -13,4 +13,4 @@ if ! which mgba-test-runner; then cargo install --git https://github.com/agbrs/agb --rev a7f9fdf01118a7a77d4dcf72f2b74a1961458b36 mgba-test-runner fi -cargo -Z build-std test +cargo -Z build-std test "$@"