about summary refs log tree commit diff
path: root/src/ci/docker/scripts
diff options
context:
space:
mode:
authorDion Dokter <diondokter@gmail.com>2024-05-20 12:18:24 +0200
committerDion Dokter <diondokter@gmail.com>2024-05-20 12:18:24 +0200
commit0d23a71ec2c79bc2da6b3fa8fa6386817e5856c5 (patch)
treef3b5e40229cf63e77b134be3dfd5970eadc7764b /src/ci/docker/scripts
parent5c301429bd5fe54351f2c88a6c9b4114abcb1880 (diff)
downloadrust-0d23a71ec2c79bc2da6b3fa8fa6386817e5856c5.tar.gz
rust-0d23a71ec2c79bc2da6b3fa8fa6386817e5856c5.zip
Deduplicate test command
Diffstat (limited to 'src/ci/docker/scripts')
-rwxr-xr-xsrc/ci/docker/scripts/x86_64-gnu-llvm.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ci/docker/scripts/x86_64-gnu-llvm.sh b/src/ci/docker/scripts/x86_64-gnu-llvm.sh
index fe545e1d5f7..8f5f7fdbe47 100755
--- a/src/ci/docker/scripts/x86_64-gnu-llvm.sh
+++ b/src/ci/docker/scripts/x86_64-gnu-llvm.sh
@@ -6,17 +6,16 @@ set -ex
 if [[ -z "${PR_CI_JOB}" ]]; then
     # When running gcc backend tests, we need to install `libgccjit` and to not run llvm codegen
     # tests as it will fail them.
-    # The tests are run a second time with the size optimizations enabled.
     if [[ "${ENABLE_GCC_CODEGEN}" == "1" ]]; then
         ../x.py --stage 1 test --skip src/tools/tidy --skip tests/codegen
-        ../x.py --stage 1 test library/std library/alloc library/core \
-            --rustc-args "--cfg feature=\"optimize_for_size\""
     else
         ../x.py --stage 1 test --skip src/tools/tidy
-        ../x.py --stage 1 test library/std library/alloc library/core \
-            --rustc-args "--cfg feature=\"optimize_for_size\""
     fi
 
+    # The tests are run a second time with the size optimizations enabled.
+    ../x.py --stage 1 test library/std library/alloc library/core \
+        --rustc-args "--cfg feature=\"optimize_for_size\""
+
     # Run the `mir-opt` tests again but this time for a 32-bit target.
     # This enforces that tests using `// EMIT_MIR_FOR_EACH_BIT_WIDTH` have
     # both 32-bit and 64-bit outputs updated by the PR author, before