macOS: use gnu binutils

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

View file

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

View file

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