diff --git a/ci/run.sh b/ci/run.sh index 935c08c8e..0b8882253 100755 --- a/ci/run.sh +++ b/ci/run.sh @@ -45,6 +45,9 @@ esac NM=$(find $(rustc --print sysroot) \( -name llvm-nm -o -name llvm-nm.exe \) ) if [ "$NM" = "" ]; then NM=${PREFIX}nm +else + default_toolchain=$(rustup default | cut -d ' ' -f 1) + NM="rustup run $default_toolchain $NM" fi # Look out for duplicated symbols when we include the compiler-rt (C) implementation