Skip to content

Commit 4e3893a

Browse files
committed
build gccjit in x86_64-gnu
Signed-off-by: onur-ozkan <[email protected]>
1 parent 359b0d8 commit 4e3893a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/ci/docker/host-x86_64/x86_64-gnu/Dockerfile

+15
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,29 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1717
pkg-config \
1818
xz-utils \
1919
mingw-w64 \
20+
# libgccjit dependencies
21+
flex \
22+
libmpfr-dev \
23+
libgmp-dev \
24+
libmpc3 \
25+
libmpc-dev \
2026
&& rm -rf /var/lib/apt/lists/*
2127

2228
COPY scripts/sccache.sh /scripts/
2329
RUN sh /scripts/sccache.sh
2430

31+
# Fix rustc_codegen_gcc lto issues.
32+
ENV GCC_EXEC_PREFIX="/usr/lib/gcc/"
33+
2534
ENV RUST_CONFIGURE_ARGS \
2635
--build=x86_64-unknown-linux-gnu \
2736
--enable-sanitizers \
2837
--enable-profiler \
2938
--enable-compiler-docs
39+
40+
COPY host-x86_64/dist-x86_64-linux/shared.sh /scripts/
41+
COPY host-x86_64/dist-x86_64-linux/build-gccjit.sh /scripts/
42+
43+
RUN /scripts/build-gccjit.sh /scripts
44+
3045
ENV SCRIPT python3 ../x.py --stage 2 test

0 commit comments

Comments
 (0)