[Lldb-commits] [PATCH] D60780: [tools] Only build lldb-instr and lldb-vscode if asked.

Davide Italiano via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Apr 16 09:20:06 PDT 2019


davide created this revision.
davide added reviewers: JDevlieghere, friss.
Herald added subscribers: lldb-commits, mgorny.
Herald added a project: LLDB.

Saves some build times, and they're not part of the usual
developer workflow.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D60780

Files:
  lldb/tools/CMakeLists.txt


Index: lldb/tools/CMakeLists.txt
===================================================================
--- lldb/tools/CMakeLists.txt
+++ lldb/tools/CMakeLists.txt
@@ -1,10 +1,16 @@
 add_subdirectory(argdumper)
 add_subdirectory(driver)
 add_subdirectory(intel-features)
-add_subdirectory(lldb-instr)
 add_subdirectory(lldb-mi)
 add_subdirectory(lldb-test)
-add_subdirectory(lldb-vscode)
+
+if (LLDB_ENABLE_TOOL_INSTR)
+  add_subdirectory(lldb-instr)
+endif()
+
+if (LLDB_ENABLE_TOOL_VSCODE)
+  add_subdirectory(lldb-vscode)
+endif()
 
 if (CMAKE_SYSTEM_NAME MATCHES "Darwin")
   add_subdirectory(darwin-debug)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60780.195402.patch
Type: text/x-patch
Size: 608 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190416/e227a0b1/attachment.bin>


More information about the lldb-commits mailing list