Skip to content

Commit cf55593

Browse files
committed
Correctly set codegen backends for GCC jobs
1 parent 19663ca commit cf55593

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

src/ci/docker/host-x86_64/x86_64-gnu-gcc-core-tests/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# This Dockerfile builds sysroot crates with the GCC backend and then run libcore tests
2-
# with it.
1+
# This Dockerfile builds sysroot crates with the GCC backend and then runs
2+
# libcore tests with the GCC backend.
33

44
FROM ubuntu:22.04
55

@@ -34,14 +34,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
3434
COPY scripts/sccache.sh /scripts/
3535
RUN sh /scripts/sccache.sh
3636

37+
ENV CODEGEN_BACKENDS="gcc"
3738
ENV NO_DEBUG_ASSERTIONS="1"
3839
ENV RUSTFLAGS="-Cpanic=abort -Zpanic-abort-tests"
3940
ENV RUST_CONFIGURE_ARGS="--build=x86_64-unknown-linux-gnu \
4041
--enable-sanitizers \
4142
--enable-profiler \
4243
--enable-compiler-docs \
43-
--set llvm.libzstd=true \
44-
--set rust.codegen-backends=[\\\"gcc\\\"]"
44+
--set llvm.libzstd=true"
4545
ENV SCRIPT="python3 ../x.py \
4646
--stage 1 \
4747
test library/coretests"

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# This Dockerfile builds sysroot with the LLVM backendsthen run tests with the
2-
# GCC backend.
1+
# This Dockerfile builds sysroot with the LLVM backend and then runs tests
2+
# with the GCC backend.
33

44
FROM ubuntu:22.04
55

@@ -34,13 +34,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
3434
COPY scripts/sccache.sh /scripts/
3535
RUN sh /scripts/sccache.sh
3636

37+
ENV CODEGEN_BACKENDS="llvm,gcc"
3738
ENV NO_DEBUG_ASSERTIONS="1"
3839
ENV RUST_CONFIGURE_ARGS="--build=x86_64-unknown-linux-gnu \
3940
--enable-sanitizers \
4041
--enable-profiler \
4142
--enable-compiler-docs \
42-
--set llvm.libzstd=true \
43-
--set rust.codegen-backends=[\\\"llvm\\\",\\\"gcc\\\"]"
43+
--set llvm.libzstd=true"
4444
ENV SCRIPT="python3 ../x.py \
4545
--stage 2 \
4646
test tests \
@@ -52,5 +52,4 @@ ENV SCRIPT="python3 ../x.py \
5252
--skip tests/rustdoc-js \
5353
--skip tests/rustdoc-js-std \
5454
--skip tests/rustdoc-json \
55-
--skip tests/rustdoc-ui \
56-
--set rust.codegen-backends=[\\\"llvm\\\",\\\"gcc\\\"]"
55+
--skip tests/rustdoc-ui"

0 commit comments

Comments
 (0)