test: Test building crt-test.c with -fno-builtin as well

This commit is contained in:
Martin Storsjö committed 2018-06-04 10:08:47 +03:00
1 parent 6a3080fa58
commit fe08750026
1 file changed
+7 -1
+7 -1
View File
@@ -13,11 +13,17 @@ export PATH=$PREFIX/bin:$PATH
cd test
TESTS_C="hello hello-tls crt-test"
TESTS_C_NO_BUILTIN="crt-test"
TESTS_CPP="hello-cpp hello-exception"
for arch in $ARCHS; do
for test in $TESTS_C; do
$arch-w64-mingw32-clang $test.c -o $test-$arch.exe
done
TESTS_EXTRA=""
for test in $TESTS_C_NO_BUILTIN; do
$arch-w64-mingw32-clang $test.c -o $test-no-builtin-$arch.exe -fno-builtin
TESTS_EXTRA="$TESTS_EXTRA $test-no-builtin"
done
for test in $TESTS_CPP; do
$arch-w64-mingw32-clang++ $test.cpp -o $test-$arch.exe
done
@@ -35,7 +41,7 @@ for arch in $ARCHS; do
COPY="$COPY_AARCH64"
;;
esac
for test in $TESTS_C $TESTS_CPP; do
for test in $TESTS_C $TESTS_CPP $TESTS_EXTRA; do
file=$test-$arch.exe
if [ -n "$COPY" ]; then
$COPY $file