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:50:37 +0200
committerDion Dokter <diondokter@gmail.com>2024-05-20 12:50:37 +0200
commitbd71c71ea04b4a4f954e579c2a6d44113274846a (patch)
tree4eadb70139ab01ba8ec5c620f495b87f35aab2db /src/ci/docker/scripts
parent0d23a71ec2c79bc2da6b3fa8fa6386817e5856c5 (diff)
downloadrust-bd71c71ea04b4a4f954e579c2a6d44113274846a.tar.gz
rust-bd71c71ea04b4a4f954e579c2a6d44113274846a.zip
Move tests to more opportune point
Diffstat (limited to 'src/ci/docker/scripts')
-rwxr-xr-xsrc/ci/docker/scripts/x86_64-gnu-llvm.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ci/docker/scripts/x86_64-gnu-llvm.sh b/src/ci/docker/scripts/x86_64-gnu-llvm.sh
index 8f5f7fdbe47..876b300d35c 100755
--- a/src/ci/docker/scripts/x86_64-gnu-llvm.sh
+++ b/src/ci/docker/scripts/x86_64-gnu-llvm.sh
@@ -12,10 +12,6 @@ if [[ -z "${PR_CI_JOB}" ]]; then
         ../x.py --stage 1 test --skip src/tools/tidy
     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
@@ -27,6 +23,10 @@ if [[ -z "${PR_CI_JOB}" ]]; then
     # Run `ui-fulldeps` in `--stage=1`, which actually uses the stage0
     # compiler, and is sensitive to the addition of new flags.
     ../x.py --stage 1 test tests/ui-fulldeps
+
+    # 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\""
 fi
 
 # When running gcc backend tests, we need to install `libgccjit` and to not run llvm codegen