File tree Expand file tree Collapse file tree 4 files changed +14
-10
lines changed
Expand file tree Collapse file tree 4 files changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ compiler-rt = { path = "compiler-rt" }
2323[features ]
2424# Build the missing intrinsics from compiler-rt C source code
2525c = []
26+ # Mark this crate as the #![compiler_builtins] crate
27+ compiler-builtins = []
28+ default = [" compiler-builtins" ]
29+ rustbuild = [" compiler-builtins" ]
2630weak = [" rlibc/weak" ]
2731
2832[workspace ]
Original file line number Diff line number Diff line change @@ -16,5 +16,5 @@ build: false
1616test_script :
1717 - cargo build --target %TARGET%
1818 - cargo build --release --target %TARGET%
19- - cargo test --target %TARGET%
20- - cargo test --release --target %TARGET%
19+ - cargo test --no-default-features -- target %TARGET%
20+ - cargo test --no-default-features -- release --target %TARGET%
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ case $1 in
77 xargo build --target $1 --release
88 ;;
99 * )
10- cargo test --target $1
11- cargo test --target $1 --release
10+ cargo test --no-default-features -- target $1
11+ cargo test --no-default-features -- target $1 --release
1212 ;;
1313esac
1414
@@ -18,20 +18,20 @@ case $1 in
1818 xargo build --features c --target $1 --bin intrinsics
1919 ;;
2020 * )
21- cargo build --features c --target $1 --bin intrinsics
21+ cargo build --no-default-features -- features c --target $1 --bin intrinsics
2222 ;;
2323esac
2424
2525# Verify that there are no undefined symbols to `panic` within our implementations
2626# TODO(#79) fix the undefined references problem for debug-assertions+lto
2727case $1 in
2828 thumb* )
29- RUSTFLAGS=" -C debug-assertions=no -C link-arg=-nostartfiles" xargo rustc --features c --target $1 --bin intrinsics -- -C lto
30- xargo rustc --features c --target $1 --bin intrinsics --release -- -C lto
29+ RUSTFLAGS=" -C debug-assertions=no -C link-arg=-nostartfiles" xargo rustc --no-default-features -- features c --target $1 --bin intrinsics -- -C lto
30+ xargo rustc --no-default-features -- features c --target $1 --bin intrinsics --release -- -C lto
3131 ;;
3232 * )
33- RUSTFLAGS=" -C debug-assertions=no" cargo rustc --features c --target $1 --bin intrinsics -- -C lto
34- cargo rustc --features c --target $1 --bin intrinsics --release -- -C lto
33+ RUSTFLAGS=" -C debug-assertions=no" cargo rustc --no-default-features -- features c --target $1 --bin intrinsics -- -C lto
34+ cargo rustc --no-default-features -- features c --target $1 --bin intrinsics --release -- -C lto
3535 ;;
3636esac
3737
Original file line number Diff line number Diff line change 11#![ cfg_attr( not( stage0) , deny( warnings) ) ]
22#![ cfg_attr( not( test) , no_std) ]
3- #![ cfg_attr( rustbuild , compiler_builtins) ]
3+ #![ cfg_attr( feature = "compiler-builtins" , compiler_builtins) ]
44#![ crate_name = "compiler_builtins" ]
55#![ crate_type = "rlib" ]
66#![ doc( html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk.png" ,
You can’t perform that action at this time.
0 commit comments