Run tests with the flag enabled

This commit is contained in:
Dion Dokter
2024-05-17 11:47:18 +02:00
parent b8b68983f3
commit b964b00668
+5
View File
@@ -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.