Skip to content

Commit b964b00

Browse files
committed
Run tests with the flag enabled
1 parent b8b6898 commit b964b00

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

+5
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,15 @@ set -ex
66
if [[ -z "${PR_CI_JOB}" ]]; then
77
# When running gcc backend tests, we need to install `libgccjit` and to not run llvm codegen
88
# tests as it will fail them.
9+
# The tests are run a second time with the size optimizations enabled.
910
if [[ "${ENABLE_GCC_CODEGEN}" == "1" ]]; then
1011
../x.py --stage 1 test --skip src/tools/tidy --skip tests/codegen
12+
../x.py --stage 1 test --skip src/tools/tidy --skip tests/codegen \
13+
--rustc-args "--cfg feature=\"optimize_for_size\""
1114
else
1215
../x.py --stage 1 test --skip src/tools/tidy
16+
../x.py --stage 1 test --skip src/tools/tidy --rustc-args \
17+
"--cfg feature=\"optimize_for_size\""
1318
fi
1419

1520
# Run the `mir-opt` tests again but this time for a 32-bit target.

0 commit comments

Comments
 (0)