parent
f4e22f0bff
commit
03209e1e2d
2 changed files with 5 additions and 2 deletions
|
@ -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
|
|
||||||
|
|
6
test.sh
6
test.sh
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue