about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/ci/docker/scripts/x86_64-gnu-llvm.sh5
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.