#!/bin/bash export CARGO_TARGET_THUMBV4T_NONE_EABI_RUNNER=mgba-test-runner export CARGO_TARGET_ARMV4T_NONE_EABI_RUNNER=mgba-test-runner # terrible export RUSTC_BOOTSTRAP=1 set -exo pipefail # terrible if ! which mgba-test-runner; then pkg-config libelf cargo install --git https://github.com/agbrs/agb --rev a7f9fdf01118a7a77d4dcf72f2b74a1961458b36 mgba-test-runner fi cargo -Z build-std test