diff options
| author | Dion Dokter <dion@tweedegolf.com> | 2024-05-17 11:47:18 +0200 |
|---|---|---|
| committer | Dion Dokter <dion@tweedegolf.com> | 2024-05-17 11:48:50 +0200 |
| commit | b964b0066833bc4deb8ebc3bae218a5298da82a9 (patch) | |
| tree | d87dab3e60333f35a99a6356b5422e45cd1b6815 /src | |
| parent | b8b68983f392ece653ef1173a7f4d7cbdfe0a9ac (diff) | |
| download | rust-b964b0066833bc4deb8ebc3bae218a5298da82a9.tar.gz rust-b964b0066833bc4deb8ebc3bae218a5298da82a9.zip | |
Run tests with the flag enabled
Diffstat (limited to 'src')
| -rwxr-xr-x | src/ci/docker/scripts/x86_64-gnu-llvm.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ci/docker/scripts/x86_64-gnu-llvm.sh b/src/ci/docker/scripts/x86_64-gnu-llvm.sh index 2eb751ca376..1f4ba498673 100755 --- a/src/ci/docker/scripts/x86_64-gnu-llvm.sh +++ b/src/ci/docker/scripts/x86_64-gnu-llvm.sh @@ -6,10 +6,15 @@ 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 --skip src/tools/tidy --skip tests/codegen \ + --rustc-args "--cfg feature=\"optimize_for_size\"" else ../x.py --stage 1 test --skip src/tools/tidy + ../x.py --stage 1 test --skip src/tools/tidy --rustc-args \ + "--cfg feature=\"optimize_for_size\"" fi # Run the `mir-opt` tests again but this time for a 32-bit target. |
