[compiler-rt] [test] [fuzzer] Don't pass msvc/clang-cl specific flags to mingw tools
authorMartin Storsjö <martin@martin.st>
Fri, 31 Mar 2023 15:23:57 +0000 (15:23 +0000)
committerMartin Storsjö <martin@martin.st>
Thu, 6 Apr 2023 08:07:42 +0000 (11:07 +0300)
This fixes building the tests so that the tests can start
executing (even if there still are lots of failures).

Differential Revision: https://reviews.llvm.org/D147648

compiler-rt/lib/fuzzer/tests/CMakeLists.txt

index 10fcfba..dd82c49 100644 (file)
@@ -20,7 +20,7 @@ set_target_properties(FuzzedDataProviderUnitTests PROPERTIES FOLDER "Compiler-RT
 set(LIBFUZZER_UNITTEST_LINK_FLAGS ${COMPILER_RT_UNITTEST_LINK_FLAGS})
 list(APPEND LIBFUZZER_UNITTEST_LINK_FLAGS --driver-mode=g++)
 
-if(WIN32)
+if(MSVC)
   list(APPEND LIBFUZZER_UNITTEST_LINK_FLAGS -Wl,-defaultlib:libcmt,-defaultlib:oldnames)
 else()
   if (APPLE)