diff options
| author | Rémy Rakic <remy.rakic+github@gmail.com> | 2024-08-08 18:15:58 +0000 |
|---|---|---|
| committer | Rémy Rakic <remy.rakic+github@gmail.com> | 2024-08-12 15:28:38 +0000 |
| commit | 754f565fe298047695e150b7a01faca3264d9e6a (patch) | |
| tree | 92e8b1d704244d97311fd531830a477457f55942 /src/ci/docker/scripts | |
| parent | 83727eca21146682e3c40c2af77dc0f7c2a297d9 (diff) | |
| download | rust-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-x | src/ci/docker/scripts/x86_64-gnu-llvm.sh | 6 |
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. |
