mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00

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.
18 lines
333 B
Bash
Executable file
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 -- $*
|