[compiler-rt] f2c9d24 - [compiler-rt] [test] [fuzzer] Don't pass msvc/clang-cl specific flags to mingw tools

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 6 01:09:30 PDT 2023


Author: Martin Storsjö
Date: 2023-04-06T11:07:42+03:00
New Revision: f2c9d24e8c8d25ce7ad4766049bbce3800eb3e19

URL: https://github.com/llvm/llvm-project/commit/f2c9d24e8c8d25ce7ad4766049bbce3800eb3e19
DIFF: https://github.com/llvm/llvm-project/commit/f2c9d24e8c8d25ce7ad4766049bbce3800eb3e19.diff

LOG: [compiler-rt] [test] [fuzzer] Don't pass msvc/clang-cl specific flags to mingw tools

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

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/fuzzer/tests/CMakeLists.txt b/compiler-rt/lib/fuzzer/tests/CMakeLists.txt
index 10fcfbaa083e5..dd82c492e83a4 100644
--- a/compiler-rt/lib/fuzzer/tests/CMakeLists.txt
+++ b/compiler-rt/lib/fuzzer/tests/CMakeLists.txt
@@ -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)


        


More information about the llvm-commits mailing list