Prechádzať zdrojové kódy

macOS: use gnu binutils

Jorge Aparicio 8 rokov pred
rodič
commit
c7c04f8c48
2 zmenil súbory, kde vykonal 7 pridanie a 3 odobranie
  1. 4 0
      ci/env.sh
  2. 3 3
      ci/script.sh

+ 4 - 0
ci/env.sh

@@ -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
 

+ 3 - 3
ci/script.sh

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