Skip to content

Commit 0fd5e75

Browse files
committed
Auto merge of rust-lang#131 - japaric:rustup, r=alexcrichton
CI: use a recent nightly - add #[no_mangle] to the panic_fmt lang item to adjust to changes in the visibility algorithm - adjust to changes in the layout of Cargo's target directory - use a newer Xargo to reduce the build time of the sysroot (only core is compiled as part of the sysroot now) r? @alexcrichton
2 parents 2d64b2d + 53da94d commit 0fd5e75

File tree

7 files changed

+21
-16
lines changed

7 files changed

+21
-16
lines changed

.travis.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
cache: cargo
22
dist: trusty
33
language: rust
4-
# NOTE(nightly-2016-12-05) work around for rust-lang/rust#38281
5-
rust: nightly-2016-12-05
4+
rust: nightly
65
services: docker
76
sudo: required
87

ci/docker/thumbv6m-none-eabi/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ RUN apt-get update && \
33
apt-get install -y --no-install-recommends \
44
ca-certificates curl gcc gcc-arm-none-eabi libc6-dev libcurl4-openssl-dev libssh2-1 libnewlib-dev
55
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
77
ENV AR_thumbv6m_none_eabi=arm-none-eabi-ar \
88
CARGO_TARGET_THUMBV6M_NONE_EABI_LINKER=arm-none-eabi-gcc \
99
CC_thumbv6m_none_eabi=arm-none-eabi-gcc \

ci/docker/thumbv7em-none-eabi/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ RUN apt-get update && \
33
apt-get install -y --no-install-recommends \
44
ca-certificates curl gcc gcc-arm-none-eabi libc6-dev libcurl4-openssl-dev libssh2-1 libnewlib-dev
55
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
77
ENV AR_thumbv7em_none_eabi=arm-none-eabi-ar \
88
CARGO_TARGET_THUMBV7EM_NONE_EABI_LINKER=arm-none-eabi-gcc \
99
CC_thumbv7em_none_eabi=arm-none-eabi-gcc \

ci/docker/thumbv7em-none-eabihf/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ RUN apt-get update && \
33
apt-get install -y --no-install-recommends \
44
ca-certificates curl gcc gcc-arm-none-eabi libc6-dev libcurl4-openssl-dev libssh2-1 libnewlib-dev
55
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
77
ENV AR_thumbv7em_none_eabihf=arm-none-eabi-ar \
88
CARGO_TARGET_THUMBV7EM_NONE_EABIHF_LINKER=arm-none-eabi-gcc \
99
CC_thumbv7em_none_eabihf=arm-none-eabi-gcc \

ci/docker/thumbv7m-none-eabi/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ RUN apt-get update && \
33
apt-get install -y --no-install-recommends \
44
ca-certificates curl gcc gcc-arm-none-eabi libc6-dev libcurl4-openssl-dev libssh2-1 libnewlib-dev
55
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
77
ENV AR_thumbv7m_none_eabi=arm-none-eabi-ar \
88
CARGO_TARGET_THUMBV7M_NONE_EABI_LINKER=arm-none-eabi-gcc \
99
CC_thumbv7m_none_eabi=arm-none-eabi-gcc \

ci/run.sh

+14-10
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ esac
2626
# TODO(#79) fix the undefined references problem for debug-assertions+lto
2727
case $1 in
2828
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
3030
xargo rustc --no-default-features --features c --target $1 --bin intrinsics --release -- -C lto
3131
;;
3232
*)
@@ -61,18 +61,22 @@ case $TRAVIS_OS_NAME in
6161
;;
6262
esac
6363

64-
# NOTE On i586, It's normal that the get_pc_thunk symbol appears several times so ignore it
6564
if [ $TRAVIS_OS_NAME = osx ]; then
66-
path=target/${1}/debug/libcompiler_builtins.rlib
65+
path=target/${1}/debug/deps/libcompiler_builtins-*.rlib
6766
else
68-
path=/target/${1}/debug/libcompiler_builtins.rlib
67+
path=/target/${1}/debug/deps/libcompiler_builtins-*.rlib
6968
fi
7069

71-
stdout=$($PREFIX$NM -g --defined-only $path)
70+
for rlib in $(echo $path); do
71+
stdout=$($PREFIX$NM -g --defined-only $rlib)
7272

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 __'
7576

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

src/bin/intrinsics.rs

+2
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,10 @@ pub fn _Unwind_Resume() {}
400400
// Lang items
401401
#[cfg(not(test))]
402402
#[lang = "eh_personality"]
403+
#[no_mangle]
403404
extern "C" fn eh_personality() {}
404405

405406
#[cfg(not(test))]
406407
#[lang = "panic_fmt"]
408+
#[no_mangle]
407409
extern "C" fn panic_fmt() {}

0 commit comments

Comments
 (0)