[PATCH] D61518: [clangd] add CLANG_ENABLE_CLANGD option to build clangd. Require threads.
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 7 00:03:34 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rCTE360115: [clangd] add CLANG_ENABLE_CLANGD option to build clangd. Require threads. (authored by sammccall, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D61518?vs=198026&id=198400#toc
Repository:
rCTE Clang Tools Extra
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D61518/new/
https://reviews.llvm.org/D61518
Files:
CMakeLists.txt
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -1,3 +1,5 @@
+include(CMakeDependentOption)
+
add_subdirectory(clang-apply-replacements)
add_subdirectory(clang-reorder-fields)
add_subdirectory(modularize)
@@ -9,7 +11,6 @@
add_subdirectory(clang-include-fixer)
add_subdirectory(clang-move)
add_subdirectory(clang-query)
-add_subdirectory(clangd)
add_subdirectory(pp-trace)
add_subdirectory(tool-template)
@@ -25,3 +26,9 @@
add_subdirectory(docs)
endif()
+# clangd has its own CMake tree. It requires threads.
+CMAKE_DEPENDENT_OPTION(CLANG_ENABLE_CLANGD "Build clangd language server" ON
+ "LLVM_ENABLE_THREADS" OFF)
+if (CLANG_ENABLE_CLANGD)
+ add_subdirectory(clangd)
+endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61518.198400.patch
Type: text/x-patch
Size: 799 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190507/e5c25480/attachment.bin>
More information about the cfe-commits
mailing list