Skip to content

Commit 25a96ca

Browse files
Don't include GCC backend if SKIP_CODEGEN_TESTS is not enabled
1 parent 13f7f05 commit 25a96ca

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/ci/run.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,13 @@ else
126126

127127
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.verify-llvm-ir"
128128

129-
# Test the Cranelift backend in CI. Bootstrap knows which targets to run tests on.
130-
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.codegen-backends=llvm,cranelift,gcc"
129+
if [[ "${SKIP_CODEGEN_TESTS}" == "1" ]]; then
130+
# Test the Cranelift backend in CI. Bootstrap knows which targets to run tests on.
131+
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.codegen-backends=llvm,cranelift"
132+
else
133+
# Test the Cranelift and GCC backends in CI. Bootstrap knows which targets to run tests on.
134+
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.codegen-backends=llvm,cranelift,gcc"
135+
fi
131136

132137
# We enable this for non-dist builders, since those aren't trying to produce
133138
# fresh binaries. We currently don't entirely support distributing a fresh

0 commit comments

Comments
 (0)