check presence of weak symbols
This commit is contained in:
parent
fdbb7883da
commit
5abf6b5d7c
11
ci/script.sh
11
ci/script.sh
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue