Less verbose output on symbol check
This commit is contained in:
parent
696b821bb7
commit
560018cc83
@ -77,7 +77,7 @@ case $1 in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case $TRAVIS_OS_NAME in
|
case "$TRAVIS_OS_NAME" in
|
||||||
osx)
|
osx)
|
||||||
# NOTE OSx's nm doesn't accept the `--defined-only` or provide an equivalent.
|
# NOTE OSx's nm doesn't accept the `--defined-only` or provide an equivalent.
|
||||||
# Use GNU nm instead
|
# Use GNU nm instead
|
||||||
@ -89,14 +89,15 @@ case $TRAVIS_OS_NAME in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ $TRAVIS_OS_NAME = osx ]; then
|
if [ "$TRAVIS_OS_NAME" = osx ]; then
|
||||||
path=target/${1}/debug/deps/libcompiler_builtins-*.rlib
|
path=target/${1}/debug/deps/libcompiler_builtins-*.rlib
|
||||||
else
|
else
|
||||||
path=/target/${1}/debug/deps/libcompiler_builtins-*.rlib
|
path=/target/${1}/debug/deps/libcompiler_builtins-*.rlib
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for rlib in $(echo $path); do
|
for rlib in $(echo $path); do
|
||||||
stdout=$($PREFIX$NM -g --defined-only $rlib)
|
set +x
|
||||||
|
stdout=$($PREFIX$NM -g --defined-only $rlib 2>&1)
|
||||||
|
|
||||||
# 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
|
||||||
set +e
|
set +e
|
||||||
@ -105,6 +106,7 @@ for rlib in $(echo $path); do
|
|||||||
if test $? = 0; then
|
if test $? = 0; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
set -ex
|
||||||
done
|
done
|
||||||
|
|
||||||
true
|
true
|
||||||
|
Loading…
Reference in New Issue
Block a user