[MinGW][libclang] Allow simultaneous shared and static lib
authorMateusz Mikuła <mati865@gmail.com>
Sat, 12 Sep 2020 19:03:22 +0000 (22:03 +0300)
committerMartin Storsjö <martin@martin.st>
Sat, 12 Sep 2020 19:03:43 +0000 (22:03 +0300)
It builds fine for MinGW on Windows.

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

clang/tools/libclang/CMakeLists.txt

index 88279ff..15f7ff9 100644 (file)
@@ -97,7 +97,7 @@ if(NOT LLVM_ENABLE_PIC OR LIBCLANG_BUILD_STATIC)
   set(ENABLE_STATIC STATIC)
 endif()
 
-if (WIN32 AND ENABLE_SHARED AND ENABLE_STATIC)
+if (MSVC AND ENABLE_SHARED AND ENABLE_STATIC)
   unset(ENABLE_STATIC)
 endif()