mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
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:
parent
e9415b43f4
commit
630b1267c2
1 changed files with 5 additions and 2 deletions
7
ninja
7
ninja
|
@ -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 -- $*
|
||||
|
|
Loading…
Reference in a new issue