File tree 7 files changed +21
-16
lines changed
7 files changed +21
-16
lines changed Original file line number Diff line number Diff line change 1
1
cache : cargo
2
2
dist : trusty
3
3
language : rust
4
- # NOTE(nightly-2016-12-05) work around for rust-lang/rust#38281
5
- rust : nightly-2016-12-05
4
+ rust : nightly
6
5
services : docker
7
6
sudo : required
8
7
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ RUN apt-get update && \
3
3
apt-get install -y --no-install-recommends \
4
4
ca-certificates curl gcc gcc-arm-none-eabi libc6-dev libcurl4-openssl-dev libssh2-1 libnewlib-dev
5
5
RUN curl -LSfs https://japaric.github.io/trust/install.sh | \
6
- sh -s -- --git japaric/xargo --tag v0.2 .1 --target x86_64-unknown-linux-gnu --to /usr/bin
6
+ sh -s -- --git japaric/xargo --tag v0.3 .1 --target x86_64-unknown-linux-gnu --to /usr/bin
7
7
ENV AR_thumbv6m_none_eabi=arm-none-eabi-ar \
8
8
CARGO_TARGET_THUMBV6M_NONE_EABI_LINKER=arm-none-eabi-gcc \
9
9
CC_thumbv6m_none_eabi=arm-none-eabi-gcc \
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ RUN apt-get update && \
3
3
apt-get install -y --no-install-recommends \
4
4
ca-certificates curl gcc gcc-arm-none-eabi libc6-dev libcurl4-openssl-dev libssh2-1 libnewlib-dev
5
5
RUN curl -LSfs https://japaric.github.io/trust/install.sh | \
6
- sh -s -- --git japaric/xargo --tag v0.2 .1 --target x86_64-unknown-linux-gnu --to /usr/bin
6
+ sh -s -- --git japaric/xargo --tag v0.3 .1 --target x86_64-unknown-linux-gnu --to /usr/bin
7
7
ENV AR_thumbv7em_none_eabi=arm-none-eabi-ar \
8
8
CARGO_TARGET_THUMBV7EM_NONE_EABI_LINKER=arm-none-eabi-gcc \
9
9
CC_thumbv7em_none_eabi=arm-none-eabi-gcc \
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ RUN apt-get update && \
3
3
apt-get install -y --no-install-recommends \
4
4
ca-certificates curl gcc gcc-arm-none-eabi libc6-dev libcurl4-openssl-dev libssh2-1 libnewlib-dev
5
5
RUN curl -LSfs https://japaric.github.io/trust/install.sh | \
6
- sh -s -- --git japaric/xargo --tag v0.2 .1 --target x86_64-unknown-linux-gnu --to /usr/bin
6
+ sh -s -- --git japaric/xargo --tag v0.3 .1 --target x86_64-unknown-linux-gnu --to /usr/bin
7
7
ENV AR_thumbv7em_none_eabihf=arm-none-eabi-ar \
8
8
CARGO_TARGET_THUMBV7EM_NONE_EABIHF_LINKER=arm-none-eabi-gcc \
9
9
CC_thumbv7em_none_eabihf=arm-none-eabi-gcc \
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ RUN apt-get update && \
3
3
apt-get install -y --no-install-recommends \
4
4
ca-certificates curl gcc gcc-arm-none-eabi libc6-dev libcurl4-openssl-dev libssh2-1 libnewlib-dev
5
5
RUN curl -LSfs https://japaric.github.io/trust/install.sh | \
6
- sh -s -- --git japaric/xargo --tag v0.2 .1 --target x86_64-unknown-linux-gnu --to /usr/bin
6
+ sh -s -- --git japaric/xargo --tag v0.3 .1 --target x86_64-unknown-linux-gnu --to /usr/bin
7
7
ENV AR_thumbv7m_none_eabi=arm-none-eabi-ar \
8
8
CARGO_TARGET_THUMBV7M_NONE_EABI_LINKER=arm-none-eabi-gcc \
9
9
CC_thumbv7m_none_eabi=arm-none-eabi-gcc \
Original file line number Diff line number Diff line change 26
26
# TODO(#79) fix the undefined references problem for debug-assertions+lto
27
27
case $1 in
28
28
thumb* )
29
- RUSTFLAGS=" -C debug-assertions=no -C link-arg=-nostartfiles " xargo rustc --no-default-features --features c --target $1 --bin intrinsics -- -C lto
29
+ RUSTFLAGS=" -C debug-assertions=no" xargo rustc --no-default-features --features c --target $1 --bin intrinsics -- -C lto -C link-arg=-nostartfiles
30
30
xargo rustc --no-default-features --features c --target $1 --bin intrinsics --release -- -C lto
31
31
;;
32
32
* )
@@ -61,18 +61,22 @@ case $TRAVIS_OS_NAME in
61
61
;;
62
62
esac
63
63
64
- # NOTE On i586, It's normal that the get_pc_thunk symbol appears several times so ignore it
65
64
if [ $TRAVIS_OS_NAME = osx ]; then
66
- path=target/${1} /debug/libcompiler_builtins.rlib
65
+ path=target/${1} /debug/deps/ libcompiler_builtins- * .rlib
67
66
else
68
- path=/target/${1} /debug/libcompiler_builtins.rlib
67
+ path=/target/${1} /debug/deps/ libcompiler_builtins- * .rlib
69
68
fi
70
69
71
- stdout=$( $PREFIX$NM -g --defined-only $path )
70
+ for rlib in $( echo $path ) ; do
71
+ stdout=$( $PREFIX$NM -g --defined-only $rlib )
72
72
73
- set +e
74
- echo " $stdout " | sort | uniq -d | grep -v __x86.get_pc_thunk | grep ' T __'
73
+ # NOTE On i586, It's normal that the get_pc_thunk symbol appears several times so ignore it
74
+ set +e
75
+ echo " $stdout " | sort | uniq -d | grep -v __x86.get_pc_thunk | grep ' T __'
75
76
76
- if test $? = 0; then
77
- exit 1
78
- fi
77
+ if test $? = 0; then
78
+ exit 1
79
+ fi
80
+ done
81
+
82
+ true
Original file line number Diff line number Diff line change @@ -400,8 +400,10 @@ pub fn _Unwind_Resume() {}
400
400
// Lang items
401
401
#[ cfg( not( test) ) ]
402
402
#[ lang = "eh_personality" ]
403
+ #[ no_mangle]
403
404
extern "C" fn eh_personality ( ) { }
404
405
405
406
#[ cfg( not( test) ) ]
406
407
#[ lang = "panic_fmt" ]
408
+ #[ no_mangle]
407
409
extern "C" fn panic_fmt ( ) { }
You can’t perform that action at this time.
0 commit comments