[PATCH] D66068: cmake: Make building clang-shlib optional
Jan Vesely via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Aug 11 20:41:02 PDT 2019
jvesely created this revision.
jvesely added a reviewer: beanz.
Herald added a subscriber: mgorny.
Herald added a project: clang.
It takes ~5min to link, add an option to avoid that.
Repository:
rC Clang
https://reviews.llvm.org/D66068
Files:
CMakeLists.txt
tools/CMakeLists.txt
Index: tools/CMakeLists.txt
===================================================================
--- tools/CMakeLists.txt
+++ tools/CMakeLists.txt
@@ -14,7 +14,7 @@
add_clang_subdirectory(clang-rename)
add_clang_subdirectory(clang-refactor)
-if(UNIX)
+if(UNIX AND CLANG_ENABLE_SHLIB)
add_clang_subdirectory(clang-shlib)
endif()
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -451,6 +451,10 @@
option(CLANG_BUILD_TOOLS
"Build the Clang tools. If OFF, just generate build targets." ON)
+if (UNIX)
+ option(CLANG_ENABLE_SHLIB "Build combined clang dynamic library." ON)
+endif()
+
option(CLANG_ENABLE_ARCMT "Build ARCMT." ON)
option(CLANG_ENABLE_STATIC_ANALYZER "Build static analyzer." ON)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66068.214573.patch
Type: text/x-patch
Size: 792 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190812/215566c4/attachment.bin>
More information about the cfe-commits
mailing list