about summary refs log tree commit diff
path: root/src/ci/docker/scripts
diff options
context:
space:
mode:
authorRémy Rakic <remy.rakic+github@gmail.com>2024-08-08 18:15:58 +0000
committerRémy Rakic <remy.rakic+github@gmail.com>2024-08-12 15:28:38 +0000
commit754f565fe298047695e150b7a01faca3264d9e6a (patch)
tree92e8b1d704244d97311fd531830a477457f55942 /src/ci/docker/scripts
parent83727eca21146682e3c40c2af77dc0f7c2a297d9 (diff)
downloadrust-754f565fe298047695e150b7a01faca3264d9e6a.tar.gz
rust-754f565fe298047695e150b7a01faca3264d9e6a.zip
don't use `--rustc-args` to test the stdlib's size optimizations feature
Diffstat (limited to 'src/ci/docker/scripts')
-rwxr-xr-xsrc/ci/docker/scripts/x86_64-gnu-llvm.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ci/docker/scripts/x86_64-gnu-llvm.sh b/src/ci/docker/scripts/x86_64-gnu-llvm.sh
index b3921f11421..98290f5a72c 100755
--- a/src/ci/docker/scripts/x86_64-gnu-llvm.sh
+++ b/src/ci/docker/scripts/x86_64-gnu-llvm.sh
@@ -18,9 +18,9 @@ if [[ -z "${PR_CI_JOB}" ]]; then
     # 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\""
+    # Rebuild the stdlib with the size optimizations enabled and run tests again.
+    RUSTFLAGS_NOT_BOOTSTRAP="--cfg feature=\"optimize_for_size\"" ../x.py --stage 1 test \
+        library/std library/alloc library/core
 fi
 
 # NOTE: intentionally uses all of `x.py`, `x`, and `x.ps1` to make sure they all work on Linux.