1
Fork 0

Don't disable incremental cache for cargo.sh

cc #1052
This commit is contained in:
bjorn3 2020-08-19 14:07:43 +02:00
parent f4e22f0bff
commit 03209e1e2d
2 changed files with 5 additions and 2 deletions

View file

@ -45,4 +45,3 @@ export LD_LIBRARY_PATH="$(pwd)/target/out:$(pwd)/build_sysroot/sysroot/lib/rustl
export DYLD_LIBRARY_PATH=$LD_LIBRARY_PATH export DYLD_LIBRARY_PATH=$LD_LIBRARY_PATH
export CG_CLIF_DISPLAY_CG_TIME=1 export CG_CLIF_DISPLAY_CG_TIME=1
export CG_CLIF_INCR_CACHE_DISABLED=1

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
set -e set -e
# Build cg_clif
if [[ "$1" == "--release" ]]; then if [[ "$1" == "--release" ]]; then
export CHANNEL='release' export CHANNEL='release'
CARGO_INCREMENTAL=1 cargo rustc --release -- -Zrun_dsymutil=no CARGO_INCREMENTAL=1 cargo rustc --release -- -Zrun_dsymutil=no
@ -10,11 +10,15 @@ else
cargo rustc -- -Zrun_dsymutil=no cargo rustc -- -Zrun_dsymutil=no
fi fi
# Config
source config.sh source config.sh
export CG_CLIF_INCR_CACHE_DISABLED=1
# Cleanup
rm -r target/out || true rm -r target/out || true
mkdir -p target/out/clif mkdir -p target/out/clif
# Perform all tests
echo "[BUILD] mini_core" echo "[BUILD] mini_core"
$RUSTC example/mini_core.rs --crate-name mini_core --crate-type lib,dylib --target $TARGET_TRIPLE $RUSTC example/mini_core.rs --crate-name mini_core --crate-type lib,dylib --target $TARGET_TRIPLE