projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb61304
)
[MinGW][libclang] Allow simultaneous shared and static lib
author
Mateusz Mikuła
<mati865@gmail.com>
Sat, 12 Sep 2020 19:03:22 +0000
(22:03 +0300)
committer
Martin 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
patch
|
blob
|
history
diff --git
a/clang/tools/libclang/CMakeLists.txt
b/clang/tools/libclang/CMakeLists.txt
index
88279ff
..
15f7ff9
100644
(file)
--- 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()