fix nm call
the prefix was missing a '-', i.e. arm-linux-gnueabinm was being called. This also sets -e in run.sh to catch this sort of errors.
This commit is contained in:
parent
960f7a80ad
commit
36a437a445
10
ci/run.sh
10
ci/run.sh
@ -1,3 +1,5 @@
|
|||||||
|
set -e
|
||||||
|
|
||||||
# Test our implementation
|
# Test our implementation
|
||||||
case $1 in
|
case $1 in
|
||||||
thumb*)
|
thumb*)
|
||||||
@ -29,7 +31,7 @@ case $1 in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# Look out for duplicated symbols when we include the compiler-rt (C) implementation
|
# Look out for duplicated symbols when we include the compiler-rt (C) implementation
|
||||||
PREFIX=$(echo $1 | sed -e 's/unknown-//')
|
PREFIX=$(echo $1 | sed -e 's/unknown-//')-
|
||||||
case $1 in
|
case $1 in
|
||||||
armv7-*)
|
armv7-*)
|
||||||
PREFIX=arm-linux-gnueabihf-
|
PREFIX=arm-linux-gnueabihf-
|
||||||
@ -55,8 +57,10 @@ case $TRAVIS_OS_NAME in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# NOTE On i586, It's normal that the get_pc_thunk symbol appears several times so ignore it
|
# NOTE On i586, It's normal that the get_pc_thunk symbol appears several times so ignore it
|
||||||
$PREFIX$NM -g --defined-only /target/${1}/debug/librustc_builtins.rlib | \
|
stdout=$($PREFIX$NM -g --defined-only /target/${1}/debug/librustc_builtins.rlib)
|
||||||
sort | uniq -d | grep -v __x86.get_pc_thunk | grep 'T __'
|
|
||||||
|
set +e
|
||||||
|
echo $stdout | sort | uniq -d | grep -v __x86.get_pc_thunk | grep 'T __'
|
||||||
|
|
||||||
if test $? = 0; then
|
if test $? = 0; then
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user