[clang] 7da9419 - [MinGW][libclang] Allow simultaneous shared and static lib
Martin Storsjö via cfe-commits
cfe-commits at lists.llvm.org
Sat Sep 12 12:05:46 PDT 2020
Author: Mateusz Mikuła
Date: 2020-09-12T22:03:43+03:00
New Revision: 7da941939902768af25ffa45149695a0a5f15951
URL: https://github.com/llvm/llvm-project/commit/7da941939902768af25ffa45149695a0a5f15951
DIFF: https://github.com/llvm/llvm-project/commit/7da941939902768af25ffa45149695a0a5f15951.diff
LOG: [MinGW][libclang] Allow simultaneous shared and static lib
It builds fine for MinGW on Windows.
Differential Revision: https://reviews.llvm.org/D87539
Added:
Modified:
clang/tools/libclang/CMakeLists.txt
Removed:
################################################################################
diff --git a/clang/tools/libclang/CMakeLists.txt b/clang/tools/libclang/CMakeLists.txt
index 88279ff7dae6..15f7ff94dfea 100644
--- a/clang/tools/libclang/CMakeLists.txt
+++ b/clang/tools/libclang/CMakeLists.txt
@@ -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()
More information about the cfe-commits
mailing list