Skip to content

Commit 3a16f98

Browse files
committed
Auto merge of #143763 - Gelbpunkt:ct-ng-aarch64-musl, r=<try>
Use crosstool-ng for dist-arm-linux-musl Almost all of the musl dist jobs use crosstool-ng, only the aarch64 and x86_64 jobs use musl-cross-make. Let's start transitioning the remaining jobs over to crosstool-ng and start dropping musl-cross-make. I noticed that this job is called `dist-arm-linux-musl`, but the GNU pendant is called `dist-aarch64-linux`. How would I go about renaming `dist-arm-linux-musl` to `dist-aarch64-linux-musl`? Is there any external effort required or can I just rename it in the repo? try-job: dist-arm-linux-musl
2 parents 855e0fe + a4813e0 commit 3a16f98

File tree

2 files changed

+19
-18
lines changed

2 files changed

+19
-18
lines changed

src/ci/docker/host-x86_64/dist-arm-linux-musl/Dockerfile

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,9 @@ RUN sh /scripts/cross-apt-packages.sh
66
COPY scripts/crosstool-ng.sh /scripts/
77
RUN sh /scripts/crosstool-ng.sh
88

9-
WORKDIR /build
10-
11-
COPY scripts/musl-toolchain.sh /build/
12-
# We need to mitigate rust-lang/rust#34978 when compiling musl itself as well
13-
RUN CFLAGS="-Wa,--compress-debug-sections=none -Wl,--compress-debug-sections=none" \
14-
CXXFLAGS="-Wa,--compress-debug-sections=none -Wl,--compress-debug-sections=none" \
15-
bash musl-toolchain.sh aarch64 && rm -rf build
16-
179
COPY scripts/rustbuild-setup.sh /scripts/
1810
RUN sh /scripts/rustbuild-setup.sh
11+
1912
WORKDIR /tmp
2013

2114
COPY scripts/crosstool-ng-build.sh /scripts/
@@ -25,13 +18,21 @@ RUN /scripts/crosstool-ng-build.sh
2518
COPY scripts/sccache.sh /scripts/
2619
RUN sh /scripts/sccache.sh
2720

21+
ENV PATH=$PATH:/x-tools/aarch64-unknown-linux-musl/bin
22+
23+
ENV \
24+
AR_aarch64_unknown_linux_musl=aarch64-unknown-linux-musl-ar \
25+
CC_aarch64_unknown_linux_musl=aarch64-unknown-linux-musl-gcc \
26+
CXX_aarch64_unknown_linux_musl=aarch64-unknown-linux-musl-g++
27+
2828
ENV HOSTS=aarch64-unknown-linux-musl
2929

3030
ENV RUST_CONFIGURE_ARGS \
3131
--enable-full-tools \
32-
--disable-docs \
33-
--musl-root-aarch64=/usr/local/aarch64-linux-musl \
34-
--enable-sanitizers \
3532
--enable-profiler \
36-
--set target.aarch64-unknown-linux-musl.crt-static=false
33+
--enable-sanitizers \
34+
--disable-docs \
35+
--set target.aarch64-unknown-linux-musl.crt-static=false \
36+
--musl-root-aarch64=/x-tools/aarch64-unknown-linux-musl/aarch64-unknown-linux-musl/sysroot/usr
37+
3738
ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS

src/ci/docker/host-x86_64/dist-arm-linux-musl/arm-linux-musl.defconfig

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ CT_PREFIX_DIR="/x-tools/${CT_TARGET}"
33
CT_USE_MIRROR=y
44
CT_MIRROR_BASE_URL="https://ci-mirrors.rust-lang.org/rustc"
55
CT_ARCH_ARM=y
6-
CT_ARCH_ARCH="armv6"
7-
CT_ARCH_FLOAT_SW=y
6+
CT_ARCH_64=y
7+
# CT_DEMULTILIB is not set
88
CT_KERNEL_LINUX=y
9-
CT_LINUX_V_3_2=y
10-
CT_BINUTILS_V_2_32=y
11-
CT_GLIBC_V_2_17=y
12-
CT_GCC_V_8=y
9+
CT_LINUX_V_4_19=y
10+
CT_LIBC_MUSL=y
11+
CT_MUSL_V_1_2_3=y
1312
CT_CC_LANG_CXX=y
13+
CT_GETTEXT_NEEDED=y

0 commit comments

Comments
 (0)