File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff 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]
6389for_each_rlib rm -f
6490
@@ -96,5 +122,7 @@ CARGO_PROFILE_DEV_LTO=true \
96122CARGO_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
100128for_each_rlib " ${symcheck[@]} " -- check-core-syms
You can’t perform that action at this time.
0 commit comments