Skip to content

Commit a97943c

Browse files
committed
Ensure that the release build no references to any functions from core
1 parent 3adf1fd commit a97943c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ci/run.sh

+5-5
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ if [ "$NM" = "" ]; then
4242
fi
4343

4444
if [ -d /target ]; then
45-
path=/target/${1}/debug/deps/libcompiler_builtins-*.rlib
45+
path=/target/${1}/release/deps/libcompiler_builtins-*.rlib
4646
else
47-
path=target/${1}/debug/deps/libcompiler_builtins-*.rlib
47+
path=target/${1}/release/deps/libcompiler_builtins-*.rlib
4848
fi
4949

5050
# 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
9393
RUSTFLAGS="-C debug-assertions=no" \
9494
CARGO_INCREMENTAL=0 \
9595
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
9797
fi
9898
CARGO_PROFILE_RELEASE_LTO=true \
9999
$cargo rustc --features "$INTRINSICS_FEATURES" --target $1 --example intrinsics --release
100100

101-
# Ensure no references to a panicking function
101+
# Ensure no references to any functions from core
102102
for rlib in $(echo $path); do
103103
set +ex
104-
$NM -u $rlib 2>&1 | grep panicking
104+
$NM -u $rlib 2>&1 | grep core
105105

106106
if test $? = 0; then
107107
exit 1

0 commit comments

Comments
 (0)