File tree 3 files changed +12
-8
lines changed
3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ compiler-rt = { path = "compiler-rt" }
23
23
[features ]
24
24
# Build the missing intrinsics from compiler-rt C source code
25
25
c = []
26
+ # Mark this crate as the #![compiler_builtins] crate
27
+ compiler-builtins = []
28
+ default = [" compiler-builtins" ]
29
+ rustbuild = [" compiler-builtins" ]
26
30
weak = [" rlibc/weak" ]
27
31
28
32
[workspace ]
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ case $1 in
7
7
xargo build --target $1 --release
8
8
;;
9
9
* )
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
12
12
;;
13
13
esac
14
14
@@ -18,20 +18,20 @@ case $1 in
18
18
xargo build --features c --target $1 --bin intrinsics
19
19
;;
20
20
* )
21
- cargo build --features c --target $1 --bin intrinsics
21
+ cargo build --no-default-features -- features c --target $1 --bin intrinsics
22
22
;;
23
23
esac
24
24
25
25
# Verify that there are no undefined symbols to `panic` within our implementations
26
26
# TODO(#79) fix the undefined references problem for debug-assertions+lto
27
27
case $1 in
28
28
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
31
31
;;
32
32
* )
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
35
35
;;
36
36
esac
37
37
Original file line number Diff line number Diff line change 1
1
#![ cfg_attr( not( stage0) , deny( warnings) ) ]
2
2
#![ cfg_attr( not( test) , no_std) ]
3
- #![ cfg_attr( rustbuild , compiler_builtins) ]
3
+ #![ cfg_attr( feature = "compiler-builtins" , compiler_builtins) ]
4
4
#![ crate_name = "compiler_builtins" ]
5
5
#![ crate_type = "rlib" ]
6
6
#![ 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