From 7ef83ec641cff0d2c50d6253588cc86e788254bc Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Sat, 10 Nov 2018 15:33:44 +0100 Subject: [PATCH] Disable alloc_example and compile mod_bench_inline's sysroot with -Zmir-opt-level=3 --- build.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 2b1b06539323..4917dff7ce6e 100755 --- a/build.sh +++ b/build.sh @@ -51,10 +51,18 @@ time xargo build popd # TODO linux linker doesn't accept duplicate definitions -$RUSTC --sysroot ~/.xargo/HOST example/alloc_example.rs --crate-type bin -./target/out/alloc_example +#$RUSTC --sysroot ~/.xargo/HOST example/alloc_example.rs --crate-type bin +#./target/out/alloc_example $RUSTC --sysroot ~/.xargo/HOST example/mod_bench.rs --crate-type bin + +echo "[BUILD] RUSTFLAGS=-Zmir-opt-level=3" +pushd xargo +rm -r ~/.xargo/HOST || true +rm -r target || true +time RUSTFLAGS="-Zmir-opt-level=3 $RUSTFLAGS" xargo build +popd + $RUSTC --sysroot ~/.xargo/HOST example/mod_bench.rs --crate-type bin -Zmir-opt-level=3 --crate-name mod_bench_inline rustc example/mod_bench.rs --crate-type bin -Copt-level=0 -o target/out/mod_bench_llvm_0 -Cpanic=abort