run-tests: Build optimized versions of the exception handling tests
Exception handling codegen can be greatly affected by optimization.
This commit is contained in:
1 parent
8cf83f259e
commit
82324fcff5
1 file changed
+6
-1
+6
-1
@@ -94,8 +94,13 @@ for arch in $ARCHS; do
|
|||||||
for test in $TESTS_CPP $TESTS_CPP_EXCEPTIONS; do
|
for test in $TESTS_CPP $TESTS_CPP_EXCEPTIONS; do
|
||||||
$arch-w64-$target_os-clang++ $test.cpp -o $TEST_DIR/$test.exe
|
$arch-w64-$target_os-clang++ $test.cpp -o $TEST_DIR/$test.exe
|
||||||
done
|
done
|
||||||
|
for test in $TESTS_CPP_EXCEPTIONS; do
|
||||||
|
$arch-w64-$target_os-clang++ $test.cpp -O2 -o $TEST_DIR/$test-opt.exe
|
||||||
|
done
|
||||||
if [ "$arch" != "aarch64" ] || [ -n "$NATIVE_AARCH64" ]; then
|
if [ "$arch" != "aarch64" ] || [ -n "$NATIVE_AARCH64" ]; then
|
||||||
TESTS_EXTRA="$TESTS_EXTRA $TESTS_CPP_EXCEPTIONS"
|
for test in $TESTS_CPP_EXCEPTIONS; do
|
||||||
|
TESTS_EXTRA="$TESTS_EXTRA $test $test-opt"
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
for test in $TESTS_CPP_LOAD_DLL; do
|
for test in $TESTS_CPP_LOAD_DLL; do
|
||||||
case $target_os in
|
case $target_os in
|
||||||
|
|||||||
Reference in new issue
Block a user