Skip to content

Commit 82324fc

Browse files
committed
run-tests: Build optimized versions of the exception handling tests
Exception handling codegen can be greatly affected by optimization.
1 parent 8cf83f2 commit 82324fc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

run-tests.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,13 @@ for arch in $ARCHS; do
9494
for test in $TESTS_CPP $TESTS_CPP_EXCEPTIONS; do
9595
$arch-w64-$target_os-clang++ $test.cpp -o $TEST_DIR/$test.exe
9696
done
97+
for test in $TESTS_CPP_EXCEPTIONS; do
98+
$arch-w64-$target_os-clang++ $test.cpp -O2 -o $TEST_DIR/$test-opt.exe
99+
done
97100
if [ "$arch" != "aarch64" ] || [ -n "$NATIVE_AARCH64" ]; then
98-
TESTS_EXTRA="$TESTS_EXTRA $TESTS_CPP_EXCEPTIONS"
101+
for test in $TESTS_CPP_EXCEPTIONS; do
102+
TESTS_EXTRA="$TESTS_EXTRA $test $test-opt"
103+
done
99104
fi
100105
for test in $TESTS_CPP_LOAD_DLL; do
101106
case $target_os in

0 commit comments

Comments
 (0)