File tree 3 files changed +11
-3
lines changed
3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
24
24
xz-utils \
25
25
nodejs \
26
26
mingw-w64 \
27
+ libgccjit-12-dev \
27
28
&& rm -rf /var/lib/apt/lists/*
28
29
30
+ # Note: libgccjit needs to match the default gcc version for the linker to find it.
31
+
29
32
# Install powershell (universal package) so we can test x.ps1 on Linux
30
33
RUN curl -sL "https://github.com/PowerShell/PowerShell/releases/download/v7.3.1/powershell_7.3.1-1.deb_amd64.deb" > powershell.deb && \
31
34
dpkg -i powershell.deb && \
@@ -47,6 +50,7 @@ ENV RUST_CONFIGURE_ARGS \
47
50
--build=x86_64-unknown-linux-gnu \
48
51
--llvm-root=/usr/lib/llvm-16 \
49
52
--enable-llvm-link-shared \
53
+ $USE_NEW_MANGLING \
50
54
--set rust.thin-lto-import-instr-limit=10
51
55
52
56
COPY host-x86_64/x86_64-gnu-llvm-16/script.sh /tmp/
Original file line number Diff line number Diff line change @@ -24,8 +24,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
24
24
xz-utils \
25
25
nodejs \
26
26
mingw-w64 \
27
+ libgccjit-13-dev \
27
28
&& rm -rf /var/lib/apt/lists/*
28
29
30
+ # Note: libgccjit needs to match the default gcc version for the linker to find it.
31
+
29
32
# Install powershell (universal package) so we can test x.ps1 on Linux
30
33
RUN curl -sL "https://github.com/PowerShell/PowerShell/releases/download/v7.3.1/powershell_7.3.1-1.deb_amd64.deb" > powershell.deb && \
31
34
dpkg -i powershell.deb && \
@@ -43,6 +46,7 @@ ENV RUST_CONFIGURE_ARGS \
43
46
--build=x86_64-unknown-linux-gnu \
44
47
--llvm-root=/usr/lib/llvm-17 \
45
48
--enable-llvm-link-shared \
49
+ $USE_NEW_MANGLING \
46
50
--set rust.thin-lto-import-instr-limit=10
47
51
48
52
COPY host-x86_64/x86_64-gnu-llvm-16/script.sh /tmp/
Original file line number Diff line number Diff line change @@ -269,14 +269,14 @@ touch $objdir/${SUMMARY_FILE}
269
269
270
270
extra_env=" "
271
271
if [ " $ENABLE_GCC_CODEGEN " = " 1" ]; then
272
- extra_env=" $EXTRA_ENV --env ENABLE_GCC_CODEGEN=1"
272
+ extra_env=" $extra_env --env ENABLE_GCC_CODEGEN=1"
273
273
# If `ENABLE_GCC_CODEGEN` is set and not empty, we add the `--enable-new-symbol-mangling`
274
274
# argument to `RUST_CONFIGURE_ARGS` and set the `GCC_EXEC_PREFIX` environment variable.
275
275
# `cg_gcc` doesn't support the legacy mangling so we need to enforce the new one
276
276
# if we run `cg_gcc` tests.
277
- extra_env=" $EXTRA_ENV --env USE_NEW_MANGLING=--enable-new-symbol-mangling"
277
+ extra_env=" $extra_env --env USE_NEW_MANGLING=--enable-new-symbol-mangling"
278
278
# Fix rustc_codegen_gcc lto issues.
279
- extra_env=" $EXTRA_ENV --env GCC_EXEC_PREFIX=/usr/lib/gcc/"
279
+ extra_env=" $extra_env --env GCC_EXEC_PREFIX=/usr/lib/gcc/"
280
280
echo " Setting extra environment values for docker: $extra_env "
281
281
fi
282
282
You can’t perform that action at this time.
0 commit comments