allow passing carguments

This commit is contained in:
lif 2025-09-18 16:20:26 -07:00
parent ed59d1587d
commit cc19a9b118
3 changed files with 6 additions and 3 deletions

View file

@ -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"

View file

@ -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 "$@"

View file

@ -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 "$@"