Skip to content

Commit eaa8a17

Browse files
author
Jorge Aparicio
committed
fix path to .rlib on OSX
1 parent c5e75fd commit eaa8a17

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

ci/run.sh

+7-2
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,14 @@ case $TRAVIS_OS_NAME in
5555
;;
5656
esac
5757

58-
tree /target
5958
# NOTE On i586, It's normal that the get_pc_thunk symbol appears several times so ignore it
60-
stdout=$($PREFIX$NM -g --defined-only /target/${1}/debug/librustc_builtins.rlib)
59+
if [ $TRAVIS_OS_NAME = osx ]; then
60+
path=target/${1}/debug/librustc_builtins.rlib
61+
else
62+
path=/target/${1}/debug/librustc_builtins.rlib
63+
fi
64+
65+
stdout=$($PREFIX$NM -g --defined-only $path)
6166

6267
set +e
6368
echo "$stdout" | sort | uniq -d | grep -v __x86.get_pc_thunk | grep 'T __'

0 commit comments

Comments
 (0)