Skip to content

Commit 280d19f

Browse files
committed
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`
2 parents 7b98ece + 19b2efd commit 280d19f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

ci/run.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -41,23 +41,23 @@ esac
4141
# Verify that we haven't drop any intrinsic/symbol
4242
case $1 in
4343
thumb*)
44-
xargo build --features c --target $1 --bin intrinsics
44+
xargo build --features c --target $1 --example intrinsics
4545
;;
4646
*)
47-
cargo build --no-default-features --features c --target $1 --bin intrinsics
47+
cargo build --no-default-features --features c --target $1 --example intrinsics
4848
;;
4949
esac
5050

5151
# Verify that there are no undefined symbols to `panic` within our implementations
5252
# TODO(#79) fix the undefined references problem for debug-assertions+lto
5353
case $1 in
5454
thumb*)
55-
RUSTFLAGS="-C debug-assertions=no" xargo rustc --no-default-features --features c --target $1 --bin intrinsics -- -C lto -C link-arg=-nostartfiles
56-
xargo rustc --no-default-features --features c --target $1 --bin intrinsics --release -- -C lto
55+
RUSTFLAGS="-C debug-assertions=no" xargo rustc --no-default-features --features c --target $1 --example intrinsics -- -C lto -C link-arg=-nostartfiles
56+
xargo rustc --no-default-features --features c --target $1 --example intrinsics --release -- -C lto
5757
;;
5858
*)
59-
RUSTFLAGS="-C debug-assertions=no" cargo rustc --no-default-features --features c --target $1 --bin intrinsics -- -C lto
60-
cargo rustc --no-default-features --features c --target $1 --bin intrinsics --release -- -C lto
59+
RUSTFLAGS="-C debug-assertions=no" cargo rustc --no-default-features --features c --target $1 --example intrinsics -- -C lto
60+
cargo rustc --no-default-features --features c --target $1 --example intrinsics --release -- -C lto
6161
;;
6262
esac
6363

File renamed without changes.

0 commit comments

Comments
 (0)