check presence of weak symbols

This commit is contained in:
Jorge Aparicio 2016-08-13 12:26:58 -05:00
parent fdbb7883da
commit 5abf6b5d7c
1 changed files with 11 additions and 0 deletions

View File

@ -9,10 +9,21 @@ build() {
inspect() { inspect() {
$PREFIX$NM -g --defined-only 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
# Check presence of weak symbols
case $TRAVIS_OS_NAME in
linux)
local symbols=( memcmp memcpy memmove memset )
for symbol in "${symbols[@]}"; do
$PREFIX$NM target/**/debug/*.rlib | grep -q "W $symbol"
done
;;
esac
} }
run_tests() { run_tests() {