Fix rustc_codegen_gcc lto issue

This commit is contained in:
Guillaume Gomez 2023-10-28 17:22:24 +02:00
parent 3c58feaa08
commit 05a84760f6
2 changed files with 4 additions and 0 deletions

View File

@ -37,6 +37,8 @@ RUN sh /scripts/sccache.sh
# Make `libgccjit.so` accessible.
RUN ln -s /usr/lib/gcc/x86_64-linux-gnu/12/libgccjit.so /usr/lib/x86_64-linux-gnu/libgccjit.so
# Fix rustc_codegen_gcc lto issues.
ENV GCC_EXEC_PREFIX="/usr/lib/gcc/"
# We are disabling CI LLVM since this builder is intentionally using a host
# LLVM, rather than the typical src/llvm-project LLVM.

View File

@ -64,6 +64,8 @@ RUN sh /scripts/sccache.sh
# Make `libgccjit.so` accessible.
RUN ln -s /usr/lib/gcc/x86_64-linux-gnu/12/libgccjit.so /usr/lib/x86_64-linux-gnu/libgccjit.so
# Fix rustc_codegen_gcc lto issues.
ENV GCC_EXEC_PREFIX="/usr/lib/gcc/"
COPY host-x86_64/x86_64-gnu-tools/checktools.sh /tmp/