about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2023-11-02 11:12:09 +0100
committerGuillaume Gomez <guillaume.gomez@huawei.com>2023-11-02 21:03:27 +0100
commit25a96ca0e5dc680362ebf6cb83dbab1024a527ae (patch)
tree391e35d9e8c05bf6372a8d8f539a2b7fc674986d
parent13f7f052d855e348cb91c1336f6d7093792912a3 (diff)
downloadrust-25a96ca0e5dc680362ebf6cb83dbab1024a527ae.tar.gz
rust-25a96ca0e5dc680362ebf6cb83dbab1024a527ae.zip
Don't include GCC backend if SKIP_CODEGEN_TESTS is not enabled
-rwxr-xr-xsrc/ci/run.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ci/run.sh b/src/ci/run.sh
index 0500d36e462..2437b7f348e 100755
--- a/src/ci/run.sh
+++ b/src/ci/run.sh
@@ -126,8 +126,13 @@ else
 
   RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.verify-llvm-ir"
 
-  # Test the Cranelift backend in CI. Bootstrap knows which targets to run tests on.
-  RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.codegen-backends=llvm,cranelift,gcc"
+  if [[ "${SKIP_CODEGEN_TESTS}" == "1" ]]; then
+    # Test the Cranelift backend in CI. Bootstrap knows which targets to run tests on.
+    RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.codegen-backends=llvm,cranelift"
+  else
+    # Test the Cranelift and GCC backends in CI. Bootstrap knows which targets to run tests on.
+    RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.codegen-backends=llvm,cranelift,gcc"
+  fi
 
   # We enable this for non-dist builders, since those aren't trying to produce
   # fresh binaries. We currently don't entirely support distributing a fresh