Skip to content

Commit e0fba3d

Browse files
committed
Auto merge of rust-lang#122047 - blyxyas:llvm-ci-jemalloc, r=<try>
Use jemalloc to compile dist on CI (x86_64-linux) Based on [this Zulip thread](https://rust-lang.zulipchat.com/#narrow/stream/242791-t-infra/topic/Is.20the.20BOLT.20on.20CI.20using.20jemalloc/near/424424207) I added Jemalloc for building LLVM, this should cut some CI time. r? `@Kobzol`
2 parents 51f4839 + 9780abb commit e0fba3d

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
@@ -33,6 +33,7 @@ RUN yum upgrade -y && \
3333
xz \
3434
zlib-devel.i686 \
3535
zlib-devel.x86_64 \
36+
jemalloc-devel \
3637
&& yum clean all
3738

3839
RUN mkdir -p /rustroot/bin
@@ -88,7 +89,7 @@ ENV RUST_CONFIGURE_ARGS \
8889
--set rust.lto=thin \
8990
--set rust.codegen-units=1
9091

91-
ENV SCRIPT python3 ../x.py build --set rust.debug=true opt-dist && \
92+
ENV SCRIPT LD_PRELOAD=`jemalloc-config --libdir`/libjemalloc.so.`jemalloc-config --revision` python3 ../x.py build --set rust.debug=true opt-dist && \
9293
./build/$HOSTS/stage0-tools-bin/opt-dist linux-ci -- python3 ../x.py dist \
9394
--host $HOSTS --target $HOSTS \
9495
--include-default-paths \

0 commit comments

Comments
 (0)