File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change
1
+ set -e
2
+
1
3
# Test our implementation
2
4
case $1 in
3
5
thumb* )
@@ -29,7 +31,7 @@ case $1 in
29
31
esac
30
32
31
33
# Look out for duplicated symbols when we include the compiler-rt (C) implementation
32
- PREFIX=$( echo $1 | sed -e ' s/unknown-//' )
34
+ PREFIX=$( echo $1 | sed -e ' s/unknown-//' ) -
33
35
case $1 in
34
36
armv7-* )
35
37
PREFIX=arm-linux-gnueabihf-
@@ -55,8 +57,10 @@ case $TRAVIS_OS_NAME in
55
57
esac
56
58
57
59
# NOTE On i586, It's normal that the get_pc_thunk symbol appears several times so ignore it
58
- $PREFIX$NM -g --defined-only /target/${1} /debug/librustc_builtins.rlib | \
59
- sort | uniq -d | grep -v __x86.get_pc_thunk | grep ' T __'
60
+ stdout=$( $PREFIX$NM -g --defined-only /target/${1} /debug/librustc_builtins.rlib)
61
+
62
+ set +e
63
+ echo $stdout | sort | uniq -d | grep -v __x86.get_pc_thunk | grep ' T __'
60
64
61
65
if test $? = 0; then
62
66
exit 1
You can’t perform that action at this time.
0 commit comments