Skip to content

Commit 112999b

Browse files
committed
Use jemalloc to compile dist on CI
1 parent c7beecf commit 112999b

File tree

1 file changed

+3
-0
lines changed
  • src/ci/docker/host-x86_64/dist-x86_64-linux

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,15 @@ 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
3940

4041
ENV PATH=/rustroot/bin:$PATH
4142
ENV LD_LIBRARY_PATH=/rustroot/lib64:/rustroot/lib32:/rustroot/lib
43+
# This is a RUN command because we need to do some command interpolation
44+
RUN export LD_PRELOAD=`jemalloc-config --libdir`/libjemalloc.so.`jemalloc-config --revision`
4245
ENV PKG_CONFIG_PATH=/rustroot/lib/pkgconfig
4346
WORKDIR /tmp
4447
RUN mkdir /home/user

0 commit comments

Comments
 (0)