File tree Expand file tree Collapse file tree 4 files changed +16
-4
lines changed Expand file tree Collapse file tree 4 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -220,4 +220,8 @@ option(CLANGD_ENABLE_REMOTE "Use gRPC library to enable remote index support for
220220set (GRPC_INSTALL_PATH "" CACHE PATH "Path to gRPC library manual installation." )
221221
222222add_subdirectory (index/remote)
223- add_subdirectory (index/dex/dexp)
223+
224+ option (CLANGD_BUILD_DEXP "Build the dexp tool as part of Clangd" ON )
225+ if (CLANGD_BUILD_DEXP)
226+ add_subdirectory (index/dex/dexp)
227+ endif ()
Original file line number Diff line number Diff line change @@ -3,15 +3,18 @@ set(CLANGD_TEST_DEPS
33 ClangdTests
44 clangd-indexer
55 split-file
6- # No tests for it, but we should still make sure they build.
7- dexp
86 )
97
108if (CLANGD_BUILD_XPC)
119 list (APPEND CLANGD_TEST_DEPS clangd-xpc-test -client)
1210 list (APPEND CLANGD_TEST_DEPS ClangdXpcUnitTests)
1311endif ()
1412
13+ if (CLANGD_BUILD_DEXP)
14+ # No tests for it, but we should still make sure they build.
15+ list (APPEND CLANGD_TEST_DEPS dexp)
16+ endif ()
17+
1518if (CLANGD_ENABLE_REMOTE)
1619 list (APPEND CLANGD_TEST_DEPS clangd-index-server clangd-index-server-monitor)
1720endif ()
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ config.llvm_shlib_dir = "@SHLIBDIR@"
1515config.clangd_source_dir = "@CMAKE_CURRENT_SOURCE_DIR@/.."
1616config.clangd_binary_dir = "@CMAKE_CURRENT_BINARY_DIR@/.."
1717config.clangd_build_xpc = @CLANGD_BUILD_XPC@
18+ config.clangd_build_dexp = @CLANGD_BUILD_DEXP@
1819config.clangd_enable_remote = @CLANGD_ENABLE_REMOTE@
1920config.clangd_tidy_checks = @CLANGD_TIDY_CHECKS@
2021config.have_zlib = @LLVM_ENABLE_ZLIB@
Original file line number Diff line number Diff line change @@ -77,7 +77,6 @@ group("test") {
7777 deps = [
7878 " :lit_site_cfg" ,
7979 " :lit_unit_site_cfg" ,
80- " //clang-tools-extra/clangd/index/dex/dexp" ,
8180 " //clang-tools-extra/clangd/indexer:clangd-indexer" ,
8281 " //clang-tools-extra/clangd/tool:clangd" ,
8382 " //clang-tools-extra/clangd/unittests:ClangdTests" ,
@@ -92,6 +91,11 @@ group("test") {
9291 " //clang-tools-extra/clangd/xpc/test-client:clangd-xpc-test-client" ,
9392 ]
9493 }
94+ if (clangd_build_dexp ) {
95+ deps += [
96+ " //clang-tools-extra/clangd/index/dex/dexp" ,
97+ ]
98+ }
9599 testonly = true
96100}
97101
You can’t perform that action at this time.
0 commit comments