Skip to content

Commit d6bf0f6

Browse files
committed
Auto merge of #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 735f758 + ccadda5 commit d6bf0f6

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

Lines changed: 2 additions & 1 deletion
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
@@ -89,7 +90,7 @@ ENV RUST_CONFIGURE_ARGS \
8990
--set rust.codegen-units=1
9091

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

0 commit comments

Comments
 (0)