From 5456a77fe3d16ab67dcdc1d4561c2eed2a050054 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Wed, 14 Sep 2022 09:54:20 +0300 Subject: [PATCH] run-tests: Wipe out an older libunwind.dll in the same way as libc++.dll Ideally we'd wipe the whole test/ 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. --- run-tests.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/run-tests.sh b/run-tests.sh index e3fa4b4..00b6b25 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -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