allow passing carguments
This commit is contained in:
parent
ed59d1587d
commit
cc19a9b118
3 changed files with 6 additions and 3 deletions
|
@ -9,7 +9,7 @@ export RUSTC_BOOTSTRAP=1
|
||||||
|
|
||||||
set -exo pipefail
|
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"
|
arm-none-eabi-objcopy -O binary "target/${target}/release/$name" "target/${name}.gba"
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# terrible
|
# terrible
|
||||||
env RUSTC_BOOTSTRAP=1 cargo -Z build-std run --release
|
export RUSTC_BOOTSTRAP=1
|
||||||
|
|
||||||
|
set -ex
|
||||||
|
exec cargo -Z build-std run --release "$@"
|
||||||
|
|
|
@ -13,4 +13,4 @@ if ! which mgba-test-runner; then
|
||||||
cargo install --git https://github.com/agbrs/agb --rev a7f9fdf01118a7a77d4dcf72f2b74a1961458b36 mgba-test-runner
|
cargo install --git https://github.com/agbrs/agb --rev a7f9fdf01118a7a77d4dcf72f2b74a1961458b36 mgba-test-runner
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cargo -Z build-std test
|
cargo -Z build-std test "$@"
|
||||||
|
|
Loading…
Reference in a new issue