macOS: use gnu binutils

master
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
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
}