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.
This commit is contained in:
Damien Elmes 2023-06-23 17:21:15 +10:00
parent e9415b43f4
commit 630b1267c2

7
ninja
View file

@ -10,6 +10,9 @@ fi
export CARGO_TARGET_DIR=$out/rust
export RECONFIGURE_KEY="${MAC_X86};${SOURCEMAP}"
# separate build+run steps so build env doesn't leak into subprocesses
cargo build -p runner
if [ "$SKIP_RUNNER_BUILD" = "1" ]; then
echo "Runner not rebuilt."
else
cargo build -p runner;
fi
exec $out/rust/debug/runner build -- $*