Skip to content

Commit 24c2a15

Browse files
author
Jorge Aparicio
committed
fix path to .rlib on OSX
1 parent 3e6ebb3 commit 24c2a15

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ci/run.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,13 @@ case $TRAVIS_OS_NAME in
5555
esac
5656

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

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

0 commit comments

Comments
 (0)