File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -42,9 +42,9 @@ if [ "$NM" = "" ]; then
42
42
fi
43
43
44
44
if [ -d /target ]; then
45
- path=/target/${1} /debug /deps/libcompiler_builtins-* .rlib
45
+ path=/target/${1} /release /deps/libcompiler_builtins-* .rlib
46
46
else
47
- path=target/${1} /debug /deps/libcompiler_builtins-* .rlib
47
+ path=target/${1} /release /deps/libcompiler_builtins-* .rlib
48
48
fi
49
49
50
50
# Look out for duplicated symbols when we include the compiler-rt (C) implementation
@@ -93,15 +93,15 @@ if [ -z "$DEBUG_LTO_BUILD_DOESNT_WORK" ]; then
93
93
RUSTFLAGS=" -C debug-assertions=no" \
94
94
CARGO_INCREMENTAL=0 \
95
95
CARGO_PROFILE_DEV_LTO=true \
96
- $cargo rustc --features " $INTRINSICS_FEATURES " --target $1 --example intrinsics
96
+ $cargo rustc --features " $INTRINSICS_FEATURES " --target $1 --example intrinsics --release
97
97
fi
98
98
CARGO_PROFILE_RELEASE_LTO=true \
99
99
$cargo rustc --features " $INTRINSICS_FEATURES " --target $1 --example intrinsics --release
100
100
101
- # Ensure no references to a panicking function
101
+ # Ensure no references to any symbols from core
102
102
for rlib in $( echo $path ) ; do
103
103
set +ex
104
- $NM -u $rlib 2>&1 | grep panicking
104
+ $NM -u $rlib 2>&1 | grep core
105
105
106
106
if test $? = 0; then
107
107
exit 1
You can’t perform that action at this time.
0 commit comments