Skip to content

Commit ca59652

Browse files
committed
Build rustc with a single CGU on x64 Linux
1 parent 42faef5 commit ca59652

File tree

1 file changed

+2
-1
lines changed
  • src/ci/docker/host-x86_64/dist-x86_64-linux

1 file changed

+2
-1
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ ENV RUST_CONFIGURE_ARGS \
8484
--set llvm.ninja=false \
8585
--set rust.jemalloc \
8686
--set rust.use-lld=true \
87-
--set rust.lto=thin
87+
--set rust.lto=thin \
88+
--set rust.codegen-units=1
8889

8990
ENV SCRIPT python3 ../x.py build --set rust.debug=true opt-dist && \
9091
./build/$HOSTS/stage0-tools-bin/opt-dist linux-ci -- python3 ../x.py dist \

0 commit comments

Comments
 (0)