Auto merge of #159 - rust-lang-nursery:intrinsics, r=japaric

move intrinsics test from src/bin to examples

with this change the libc crate is not required when calling `cargo build -p
compiler-builtins`
This commit is contained in:
bors 2017-04-11 22:15:28 +00:00
commit 280d19f112
2 changed files with 6 additions and 6 deletions

View File

@ -41,10 +41,10 @@ esac
# Verify that we haven't drop any intrinsic/symbol
case $1 in
thumb*)
xargo build --features c --target $1 --bin intrinsics
xargo build --features c --target $1 --example intrinsics
;;
*)
cargo build --no-default-features --features c --target $1 --bin intrinsics
cargo build --no-default-features --features c --target $1 --example intrinsics
;;
esac
@ -52,12 +52,12 @@ esac
# TODO(#79) fix the undefined references problem for debug-assertions+lto
case $1 in
thumb*)
RUSTFLAGS="-C debug-assertions=no" xargo rustc --no-default-features --features c --target $1 --bin intrinsics -- -C lto -C link-arg=-nostartfiles
xargo rustc --no-default-features --features c --target $1 --bin intrinsics --release -- -C lto
RUSTFLAGS="-C debug-assertions=no" xargo rustc --no-default-features --features c --target $1 --example intrinsics -- -C lto -C link-arg=-nostartfiles
xargo rustc --no-default-features --features c --target $1 --example intrinsics --release -- -C lto
;;
*)
RUSTFLAGS="-C debug-assertions=no" cargo rustc --no-default-features --features c --target $1 --bin intrinsics -- -C lto
cargo rustc --no-default-features --features c --target $1 --bin intrinsics --release -- -C lto
RUSTFLAGS="-C debug-assertions=no" cargo rustc --no-default-features --features c --target $1 --example intrinsics -- -C lto
cargo rustc --no-default-features --features c --target $1 --example intrinsics --release -- -C lto
;;
esac