run-tests: Wipe out an older libunwind.dll in the same way as libc++.dll

Ideally we'd wipe the whole test/<arch> directory before running
the tests (we do that if CLEAN is set), but here we only wipe out
the specific ones that can affect how new tests are built and linked.
This commit is contained in:
Martin Storsjö committed 2022-09-15 13:54:51 +03:00
1 parent b6429b6632
commit 5456a77fe3
1 file changed
+3 -2
+3 -2
View File
@@ -104,8 +104,9 @@ for arch in $ARCHS; do
TESTS_EXTRA=""
[ -z "$CLEAN" ] || rm -rf $TEST_DIR
# A leftover libc++.dll from a previous round will cause the linker to find it (and error out) instead of
# locating libc++.dll.a in a later include directory.
rm -f $TEST_DIR/libc++.dll
# locating libc++.dll.a in a later include directory. The same goes with
# libunwind.dll.
rm -f $TEST_DIR/libc++.dll $TEST_DIR/libunwind.dll
mkdir -p $TEST_DIR
for test in $TESTS_C; do
$arch-w64-mingw32-clang $test.c -o $TEST_DIR/$test.exe