File tree Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Expand file tree Collapse file tree 4 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,9 @@ RUN curl -sL "https://github.com/PowerShell/PowerShell/releases/download/v7.3.1/
3737COPY scripts/sccache.sh /scripts/
3838RUN sh /scripts/sccache.sh
3939
40+ # Make `libgccjit.so` accessible to the linker.
41+ RUN ln -s /usr/lib/gcc/x86_64-linux-gnu/12/libgccjit.so /usr/lib/x86_64-linux-gnu/libgccjit.so
42+
4043# We are disabling CI LLVM since this builder is intentionally using a host
4144# LLVM, rather than the typical src/llvm-project LLVM.
4245ENV NO_DOWNLOAD_CI_LLVM 1
@@ -50,7 +53,6 @@ ENV RUST_CONFIGURE_ARGS \
5053 --build=x86_64-unknown-linux-gnu \
5154 --llvm-root=/usr/lib/llvm-16 \
5255 --enable-llvm-link-shared \
53- $USE_NEW_MANGLING \
5456 --set rust.thin-lto-import-instr-limit=10
5557
5658COPY host-x86_64/x86_64-gnu-llvm-16/script.sh /tmp/
Original file line number Diff line number Diff line change @@ -46,7 +46,6 @@ ENV RUST_CONFIGURE_ARGS \
4646 --build=x86_64-unknown-linux-gnu \
4747 --llvm-root=/usr/lib/llvm-17 \
4848 --enable-llvm-link-shared \
49- $USE_NEW_MANGLING \
5049 --set rust.thin-lto-import-instr-limit=10
5150
5251COPY host-x86_64/x86_64-gnu-llvm-16/script.sh /tmp/
Original file line number Diff line number Diff line change @@ -270,11 +270,6 @@ touch $objdir/${SUMMARY_FILE}
270270extra_env=" "
271271if [ " $ENABLE_GCC_CODEGEN " = " 1" ]; then
272272 extra_env=" $extra_env --env ENABLE_GCC_CODEGEN=1"
273- # If `ENABLE_GCC_CODEGEN` is set and not empty, we add the `--enable-new-symbol-mangling`
274- # argument to `RUST_CONFIGURE_ARGS` and set the `GCC_EXEC_PREFIX` environment variable.
275- # `cg_gcc` doesn't support the legacy mangling so we need to enforce the new one
276- # if we run `cg_gcc` tests.
277- extra_env=" $extra_env --env USE_NEW_MANGLING=--enable-new-symbol-mangling"
278273 # Fix rustc_codegen_gcc lto issues.
279274 extra_env=" $extra_env --env GCC_EXEC_PREFIX=/usr/lib/gcc/"
280275 echo " Setting extra environment values for docker: $extra_env "
Original file line number Diff line number Diff line change @@ -163,6 +163,14 @@ if [ "$IS_NOT_LATEST_LLVM" = "" ]; then
163163 export COMPILETEST_NEEDS_ALL_LLVM_COMPONENTS=1
164164fi
165165
166+ if [ " $ENABLE_GCC_CODEGEN " = " 1" ]; then
167+ # If `ENABLE_GCC_CODEGEN` is set and not empty, we add the `--enable-new-symbol-mangling`
168+ # argument to `RUST_CONFIGURE_ARGS` and set the `GCC_EXEC_PREFIX` environment variable.
169+ # `cg_gcc` doesn't support the legacy mangling so we need to enforce the new one
170+ # if we run `cg_gcc` tests.
171+ RUST_CONFIGURE_ARGS=" $RUST_CONFIGURE_ARGS --enable-new-symbol-mangling"
172+ fi
173+
166174# Print the date from the local machine and the date from an external source to
167175# check for clock drifts. An HTTP URL is used instead of HTTPS since on Azure
168176# Pipelines it happened that the certificates were marked as expired.
You can’t perform that action at this time.
0 commit comments