macOS: use gnu binutils

This commit is contained in:
Jorge Aparicio 2016-08-07 17:29:31 -05:00
parent fda97847bb
commit c7c04f8c48
2 changed files with 7 additions and 3 deletions

View File

@ -1,9 +1,13 @@
case $TRAVIS_OS_NAME in case $TRAVIS_OS_NAME in
linux) linux)
export HOST=x86_64-unknown-linux-gnu export HOST=x86_64-unknown-linux-gnu
export NM=nm
export OBJDUMP=objdump
;; ;;
osx) osx)
export HOST=x86_64-apple-darwin export HOST=x86_64-apple-darwin
export NM=gnm
export OBJDUMP=gobjdump
;; ;;
esac esac

View File

@ -17,10 +17,10 @@ run_tests() {
} }
inspect() { inspect() {
${PREFIX}nm -g target/**/debug/*.rlib $PREFIX$NM -g --defined-only target/**/debug/*.rlib
set +e set +e
${PREFIX}objdump -Cd target/**/debug/*.rlib $PREFIX$OBJDUMP -Cd target/**/debug/*.rlib
${PREFIX}objdump -Cd target/**/release/*.rlib $PREFIX$OBJDUMP -Cd target/**/release/*.rlib
set -e set -e
} }