Skip to content

Commit

Permalink
[clangd] add CLANG_ENABLE_CLANGD option to build clangd. Require thre…
Browse files Browse the repository at this point in the history
…ads.

Reviewers: gribozavr

Subscribers: mgorny, ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, cfe-commits

Tags: #clang

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

llvm-svn: 360115
  • Loading branch information
sam-mccall authored and MrSidims committed May 17, 2019
1 parent eba6504 commit f0d9ebe
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion clang-tools-extra/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include(CMakeDependentOption)

add_subdirectory(clang-apply-replacements)
add_subdirectory(clang-reorder-fields)
add_subdirectory(modularize)
Expand All @@ -9,7 +11,6 @@ add_subdirectory(clang-doc)
add_subdirectory(clang-include-fixer)
add_subdirectory(clang-move)
add_subdirectory(clang-query)
add_subdirectory(clangd)
add_subdirectory(pp-trace)
add_subdirectory(tool-template)

Expand All @@ -25,3 +26,9 @@ if( CLANG_TOOLS_EXTRA_INCLUDE_DOCS )
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()

0 comments on commit f0d9ebe

Please sign in to comment.