Add ability to run example in release mode

This commit is contained in:
Gwilym Kuiper 2022-02-24 22:08:36 +00:00
parent 28cc061596
commit 83be1c7c22

View file

@ -12,6 +12,10 @@ run-example example:
just _build-example "{{example}}" just _build-example "{{example}}"
mgba-qt "$CARGO_TARGET_DIR/thumbv4t-none-eabi/debug/examples/{{example}}" mgba-qt "$CARGO_TARGET_DIR/thumbv4t-none-eabi/debug/examples/{{example}}"
run-example-release example:
just _build-example-release "{{example}}"
mgba-qt "$CARGO_TARGET_DIR/thumbv4t-none-eabi/release/examples/{{example}}"
ci: && build-roms ci: && build-roms
just _all-crates _build just _all-crates _build
just _all-crates _test-debug just _all-crates _test-debug
@ -72,3 +76,5 @@ _clean crate:
_build-example example: _build-example example:
(cd agb && cargo build "--example={{example}}") (cd agb && cargo build "--example={{example}}")
_build-example-release example:
(cd agb && cargo build "--example={{example}}" --release)