-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #126298 - heiher:loongarch64-musl-ci, r=Mark-Simulacrum
Promote loongarch64-unknown-linux-musl to Tier 2 with host tools MCP: rust-lang/compiler-team#753 Tracking issue: #122592 try-job: dist-loongarch64-musl
- Loading branch information
Showing
9 changed files
with
91 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Change this file to make users of the `download-ci-llvm` configuration download | ||
a new version of LLVM from CI, even if the LLVM submodule hasn’t changed. | ||
|
||
Last change is for: https://github.com/rust-lang/rust/pull/125141 | ||
Last change is for: https://github.com/rust-lang/rust/pull/126298 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
src/ci/docker/host-x86_64/dist-loongarch64-musl/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
FROM ubuntu:22.04 | ||
|
||
COPY scripts/cross-apt-packages.sh /scripts/ | ||
RUN sh /scripts/cross-apt-packages.sh | ||
|
||
COPY scripts/crosstool-ng-git.sh /scripts/ | ||
RUN sh /scripts/crosstool-ng-git.sh | ||
|
||
COPY scripts/rustbuild-setup.sh /scripts/ | ||
RUN sh /scripts/rustbuild-setup.sh | ||
WORKDIR /tmp | ||
|
||
COPY scripts/crosstool-ng-build.sh /scripts/ | ||
COPY host-x86_64/dist-loongarch64-musl/loongarch64-unknown-linux-musl.defconfig /tmp/crosstool.defconfig | ||
RUN /scripts/crosstool-ng-build.sh | ||
|
||
COPY scripts/sccache.sh /scripts/ | ||
RUN sh /scripts/sccache.sh | ||
|
||
ENV PATH=$PATH:/x-tools/loongarch64-unknown-linux-musl/bin | ||
|
||
ENV CC_loongarch64_unknown_linux_musl=loongarch64-unknown-linux-musl-gcc \ | ||
AR_loongarch64_unknown_linux_musl=loongarch64-unknown-linux-musl-ar \ | ||
CXX_loongarch64_unknown_linux_musl=loongarch64-unknown-linux-musl-g++ | ||
|
||
ENV HOSTS=loongarch64-unknown-linux-musl | ||
|
||
ENV RUST_CONFIGURE_ARGS \ | ||
--enable-extended \ | ||
--enable-lld \ | ||
--disable-docs \ | ||
--set target.loongarch64-unknown-linux-musl.crt-static=false \ | ||
--musl-root-loongarch64=/x-tools/loongarch64-unknown-linux-musl/loongarch64-unknown-linux-musl/sysroot/usr | ||
|
||
ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $HOSTS |
15 changes: 15 additions & 0 deletions
15
src/ci/docker/host-x86_64/dist-loongarch64-musl/loongarch64-unknown-linux-musl.defconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
CT_CONFIG_VERSION="4" | ||
CT_EXPERIMENTAL=y | ||
CT_PREFIX_DIR="/x-tools/${CT_TARGET}" | ||
CT_USE_MIRROR=y | ||
CT_MIRROR_BASE_URL="https://ci-mirrors.rust-lang.org/rustc" | ||
CT_ARCH_LOONGARCH=y | ||
# CT_DEMULTILIB is not set | ||
CT_ARCH_USE_MMU=y | ||
CT_ARCH_ARCH="loongarch64" | ||
CT_KERNEL_LINUX=y | ||
CT_LINUX_V_5_19=y | ||
CT_LIBC_MUSL=y | ||
CT_CC_GCC_ENABLE_DEFAULT_PIE=y | ||
CT_CC_LANG_CXX=y | ||
CT_GETTEXT_NEEDED=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
set -ex | ||
|
||
URL=https://github.com/crosstool-ng/crosstool-ng | ||
REV=c64500d94be92ed1bcdfdef911048a14e216a5e1 | ||
|
||
mkdir crosstool-ng | ||
cd crosstool-ng | ||
git init | ||
git fetch --depth=1 ${URL} ${REV} | ||
git reset --hard FETCH_HEAD | ||
./bootstrap | ||
./configure --prefix=/usr/local | ||
make -j$(nproc) | ||
make install | ||
cd .. | ||
rm -rf crosstool-ng |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters