Skip to content

Commit db890f1

Browse files
author
Jorge Aparicio
committed
check presence of weak symbols
1 parent 8c6e821 commit db890f1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ci/script.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,16 @@ inspect() {
3333
$PREFIX$OBJDUMP -Cd target/**/debug/*.rlib
3434
$PREFIX$OBJDUMP -Cd target/**/release/*.rlib
3535
set -e
36+
37+
case $TRAVIS_OS_NAME in
38+
linux)
39+
# Check presence of weak symbols
40+
local symbols=( memcmp memcpy memmove memset )
41+
for symbol in "${symbols[@]}"; do
42+
$PREFIX$NM target/**/debug/*.rlib | grep -q "W $symbol"
43+
done
44+
;;
45+
esac
3646
}
3747

3848
main() {

0 commit comments

Comments
 (0)