Anki/ninja
Damien Elmes 630b1267c2 Add ability to skip runner build
Slightly speeds up runs and checks when the runner hasn't changed.
In the future it might be worth splitting the runner into a separate
repo, so we can skip rebuilds except when we explicitly bump the version.
2023-06-23 17:41:31 +10:00

18 lines
333 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;
fi
exec $out/rust/debug/runner build -- $*