Skip to content

Commit 239b876

Browse files
committed
Ensure that the release build no references to any functions from core
1 parent a849d28 commit 239b876

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ci/run.sh

+4-3
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
@@ -98,9 +98,10 @@ 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+
# FIXME: In fact, we want to check core.
104105
$NM -u $rlib 2>&1 | grep panicking
105106

106107
if test $? = 0; then

0 commit comments

Comments
 (0)