Rollup merge of #152060 - heiher:opt-loong64-linux, r=Kobzol

ci: Optimize loongarch64-linux dist builders

Tune the build configuration for loongarch64-linux targets to speed up rustc.

Changes include:
- Enable jemalloc and rust thin-lto.
- Set codegen-units=1.

These changes reduce rustc-perf compile time by ~17%.
This commit is contained in:
Jonathan Brouwer 2026-02-04 08:12:41 +01:00 committed by GitHub
commit 71ed31eece
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -50,6 +50,9 @@ ENV RUST_CONFIGURE_ARGS \
--enable-full-tools \
--enable-profiler \
--enable-sanitizers \
--disable-docs
--disable-docs \
--set rust.jemalloc \
--set rust.lto=thin \
--set rust.codegen-units=1
ENV SCRIPT python3 ../x.py dist --host $HOSTS --target $TARGETS

View file

@ -33,6 +33,9 @@ ENV RUST_CONFIGURE_ARGS \
--enable-profiler \
--enable-sanitizers \
--disable-docs \
--set rust.jemalloc \
--set rust.lto=thin \
--set rust.codegen-units=1 \
--set target.loongarch64-unknown-linux-musl.crt-static=false \
--musl-root-loongarch64=/x-tools/loongarch64-unknown-linux-musl/loongarch64-unknown-linux-musl/sysroot/usr