anki/ninja
2023-07-02 10:31:07 +10:00

19 lines
344 B
Bash
Executable File

#!/bin/bash
set -e
if [ "$BUILD_ROOT" == "" ]; then
out=$(pwd)/out
else
out="$BUILD_ROOT"
fi
export CARGO_TARGET_DIR=$out/rust
export RECONFIGURE_KEY="${MAC_X86};${SOURCEMAP}"
if [ "$SKIP_RUNNER_BUILD" = "1" ]; then
echo "Runner not rebuilt."
else
cargo build -p runner --release
fi
exec $out/rust/release/runner build -- $*