File tree 4 files changed +11
-7
lines changed
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/
37
37
COPY scripts/sccache.sh /scripts/
38
38
RUN sh /scripts/sccache.sh
39
39
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
+
40
43
# We are disabling CI LLVM since this builder is intentionally using a host
41
44
# LLVM, rather than the typical src/llvm-project LLVM.
42
45
ENV NO_DOWNLOAD_CI_LLVM 1
@@ -50,7 +53,6 @@ ENV RUST_CONFIGURE_ARGS \
50
53
--build=x86_64-unknown-linux-gnu \
51
54
--llvm-root=/usr/lib/llvm-16 \
52
55
--enable-llvm-link-shared \
53
- $USE_NEW_MANGLING \
54
56
--set rust.thin-lto-import-instr-limit=10
55
57
56
58
COPY 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 \
46
46
--build=x86_64-unknown-linux-gnu \
47
47
--llvm-root=/usr/lib/llvm-17 \
48
48
--enable-llvm-link-shared \
49
- $USE_NEW_MANGLING \
50
49
--set rust.thin-lto-import-instr-limit=10
51
50
52
51
COPY 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}
270
270
extra_env=" "
271
271
if [ " $ENABLE_GCC_CODEGEN " = " 1" ]; then
272
272
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"
278
273
# Fix rustc_codegen_gcc lto issues.
279
274
extra_env=" $extra_env --env GCC_EXEC_PREFIX=/usr/lib/gcc/"
280
275
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
163
163
export COMPILETEST_NEEDS_ALL_LLVM_COMPONENTS=1
164
164
fi
165
165
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
+
166
174
# Print the date from the local machine and the date from an external source to
167
175
# check for clock drifts. An HTTP URL is used instead of HTTPS since on Azure
168
176
# Pipelines it happened that the certificates were marked as expired.
You can’t perform that action at this time.
0 commit comments