Skip to content

Commit fca1575

Browse files
committed
update
1 parent 0fd17e8 commit fca1575

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

ci/run.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,32 @@ for_each_rlib() {
5959
"$@" "${rlib_paths[@]}"
6060
}
6161

62+
63+
PREFIX=${target//unknown-/}-
64+
case "$target" in
65+
armv7-*)
66+
PREFIX=arm-linux-gnueabihf-
67+
;;
68+
thumb*)
69+
PREFIX=arm-none-eabi-
70+
;;
71+
*86*-*)
72+
PREFIX=
73+
;;
74+
esac
75+
76+
NM=$(find "$(rustc --print sysroot)" \( -name llvm-nm -o -name llvm-nm.exe \) )
77+
if [ "$NM" = "" ]; then
78+
NM="${PREFIX}nm"
79+
fi
80+
81+
# i686-pc-windows-gnu tools have a dependency on some DLLs, so run it with
82+
# rustup run to ensure that those are in PATH.
83+
TOOLCHAIN="$(rustup show active-toolchain | sed 's/ (default)//')"
84+
if [[ "$TOOLCHAIN" == *i686-pc-windows-gnu ]]; then
85+
NM="rustup run $TOOLCHAIN $NM"
86+
fi
87+
6288
# Remove any existing artifacts from previous tests that don't set #![compiler_builtins]
6389
for_each_rlib rm -f
6490

@@ -96,5 +122,7 @@ CARGO_PROFILE_DEV_LTO=true \
96122
CARGO_PROFILE_RELEASE_LTO=true \
97123
cargo build --target "$target" --package builtins-test-intrinsics --release
98124

125+
for_each_rlib nm
126+
99127
# Ensure no references to any symbols from core
100128
for_each_rlib "${symcheck[@]}" -- check-core-syms

0 commit comments

Comments
 (0)