Skip to content

Commit

Permalink
Build rustc with a single CGU on x64 Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Kobzol committed Sep 4, 2023
1 parent ec08a03 commit 1bffa88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ci/docker/host-x86_64/dist-x86_64-linux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ ENV RUST_CONFIGURE_ARGS \
--set llvm.ninja=false \
--set rust.jemalloc \
--set rust.use-lld=true \
--set rust.lto=thin
--set rust.lto=thin \
--set rust.codegen-units=1

ENV SCRIPT python3 ../x.py build --set rust.debug=true opt-dist && \
./build/$HOSTS/stage0-tools-bin/opt-dist python3 ../x.py dist \
Expand Down

0 comments on commit 1bffa88

Please sign in to comment.