File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,15 @@ set -ex
6
6
if [[ -z " ${PR_CI_JOB} " ]]; then
7
7
# When running gcc backend tests, we need to install `libgccjit` and to not run llvm codegen
8
8
# tests as it will fail them.
9
+ # The tests are run a second time with the size optimizations enabled.
9
10
if [[ " ${ENABLE_GCC_CODEGEN} " == " 1" ]]; then
10
11
../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\" "
11
14
else
12
15
../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\" "
13
18
fi
14
19
15
20
# Run the `mir-opt` tests again but this time for a 32-bit target.
You can’t perform that action at this time.
0 commit comments