Skip to content

Commit 370609b

Browse files
Fix rustc_codegen_gcc lto issue
1 parent 90e65f0 commit 370609b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ RUN sh /scripts/sccache.sh
3737

3838
# Make `libgccjit.so` accessible.
3939
RUN ln -s /usr/lib/gcc/x86_64-linux-gnu/12/libgccjit.so /usr/lib/x86_64-linux-gnu/libgccjit.so
40+
# Fix rustc_codegen_gcc lto issues.
41+
ENV GCC_EXEC_PREFIX="/usr/lib/gcc/"
4042

4143
# We are disabling CI LLVM since this builder is intentionally using a host
4244
# LLVM, rather than the typical src/llvm-project LLVM.

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

+2
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ RUN sh /scripts/sccache.sh
6464

6565
# Make `libgccjit.so` accessible.
6666
RUN ln -s /usr/lib/gcc/x86_64-linux-gnu/12/libgccjit.so /usr/lib/x86_64-linux-gnu/libgccjit.so
67+
# Fix rustc_codegen_gcc lto issues.
68+
ENV GCC_EXEC_PREFIX="/usr/lib/gcc/"
6769

6870
COPY host-x86_64/x86_64-gnu-tools/checktools.sh /tmp/
6971

0 commit comments

Comments
 (0)