File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -42,13 +42,25 @@ install_xargo() {
42
42
fi
43
43
}
44
44
45
+ install_wgetpaste () {
46
+ if [[ $TRAVIS_OS_NAME == " osx" ]]; then
47
+ brew install wgetpaste
48
+ else
49
+ curl -O http://wgetpaste.zlin.dk/wgetpaste-2.28.tar.bz2
50
+ tar -xvf wgetpaste-2.28.tar.bz2
51
+ sudo mv ./wgetpaste-2.28/wgetpaste /usr/bin
52
+ rm -r wgetpaste-2.28*
53
+ fi
54
+ }
55
+
45
56
main () {
46
57
if [[ $TRAVIS_OS_NAME == " osx" || ${IN_DOCKER_CONTAINER:- n} == " y" ]]; then
47
58
install_qemu
48
59
install_binutils
49
60
install_rust
50
61
add_rustup_target
51
62
install_xargo
63
+ install_wgetpaste
52
64
fi
53
65
}
54
66
Original file line number Diff line number Diff line change 2
2
3
3
. $( dirname $0 ) /env.sh
4
4
5
+ gist () {
6
+ wgetpaste -s gists -d " '$1 ' from commit '$TRAVIS_COMMIT ' on branch '$TRAVIS_BRANCH '"
7
+ echo " Disassembly available at the above URL."
8
+ }
9
+
5
10
build () {
6
11
${CARGO:- cargo} build --target $TARGET
7
12
${CARGO:- cargo} build --target $TARGET --release
@@ -11,7 +16,7 @@ inspect() {
11
16
$PREFIX$NM -g --defined-only target/** /debug/* .rlib
12
17
13
18
set +e
14
- $PREFIX$OBJDUMP -Cd target/** /release/* .rlib
19
+ $PREFIX$OBJDUMP -Cd target/** /release/* .rlib | gist " $TARGET /rustc-builtins.rlib "
15
20
set -e
16
21
17
22
# Check presence of weak symbols
You can’t perform that action at this time.
0 commit comments