Skip to content

Commit e7a851f

Browse files
committed
don't use --rustc-args to test the stdlib's size optimizations feature
1 parent 837ff0b commit e7a851f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ci/docker/scripts/x86_64-gnu-llvm.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ if [[ -z "${PR_CI_JOB}" ]]; then
1818
# compiler, and is sensitive to the addition of new flags.
1919
../x.py --stage 1 test tests/ui-fulldeps
2020

21-
# The tests are run a second time with the size optimizations enabled.
22-
../x.py --stage 1 test library/std library/alloc library/core \
23-
--rustc-args "--cfg feature=\"optimize_for_size\""
21+
# Rebuild the stdlib with the size optimizations enabled and run tests again.
22+
RUSTFLAGS_NOT_BOOTSTRAP="--cfg feature=\"optimize_for_size\"" ../x.py --stage 1 test \
23+
library/std library/alloc library/core
2424
fi
2525

2626
# NOTE: intentionally uses all of `x.py`, `x`, and `x.ps1` to make sure they all work on Linux.

0 commit comments

Comments
 (0)