[Lldb-commits] [lldb] r358533 - [tools] Only build lldb-test when needed.
Davide Italiano via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 16 14:56:07 PDT 2019
Author: davide
Date: Tue Apr 16 14:56:07 2019
New Revision: 358533
URL: http://llvm.org/viewvc/llvm-project?rev=358533&view=rev
Log:
[tools] Only build lldb-test when needed.
Modified:
lldb/trunk/tools/CMakeLists.txt
Modified: lldb/trunk/tools/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/CMakeLists.txt?rev=358533&r1=358532&r2=358533&view=diff
==============================================================================
--- lldb/trunk/tools/CMakeLists.txt (original)
+++ lldb/trunk/tools/CMakeLists.txt Tue Apr 16 14:56:07 2019
@@ -2,7 +2,11 @@ add_subdirectory(argdumper)
add_subdirectory(driver)
add_subdirectory(intel-features)
add_subdirectory(lldb-mi)
-add_subdirectory(lldb-test)
+
+# We want lldb-test to be built only when it's needed,
+# i.e. if a target requires it as dependency. The typical
+# example is `check-lldb`. So, we pass EXCLUDE_FROM_ALL here.
+add_subdirectory(lldb-test EXCLUDE_FROM_ALL)
add_lldb_tool_subdirectory(lldb-instr)
add_lldb_tool_subdirectory(lldb-vscode)
More information about the lldb-commits
mailing list