# the value is not canonicalized within LLVM
llvm_canonicalize_cmake_booleans(
LLDB_DISABLE_PYTHON
- LLDB_TOOL_LLDB_INSTR_BUILD
- LLDB_TOOL_LLDB_VSCODE_BUILD
LLVM_ENABLE_ZLIB
LLDB_IS_64_BITS)
config.host_triple = "@LLVM_HOST_TRIPLE@"
config.lldb_bitness = 64 if @LLDB_IS_64_BITS@ else 32
config.lldb_disable_python = @LLDB_DISABLE_PYTHON@
-config.have_lldb_instr = @LLDB_TOOL_LLDB_INSTR_BUILD@
-config.have_lldb_vscode = @LLDB_TOOL_LLDB_VSCODE_BUILD@
# Support substitution of the tools and libs dirs with user parameters. This is
# used when we can't determine the tool dir at configuration time.
-import sys
-
-if not config.have_lldb_instr:
+if not "lldb-instr" in config.available_features:
config.unsupported = True
add_subdirectory(argdumper)
add_subdirectory(driver)
add_subdirectory(intel-features)
-add_subdirectory(lldb-mi)
# We want lldb-test to be built only when it's needed,
# i.e. if a target requires it as dependency. The typical
add_subdirectory(lldb-test EXCLUDE_FROM_ALL)
add_lldb_tool_subdirectory(lldb-instr)
+add_lldb_tool_subdirectory(lldb-mi)
add_lldb_tool_subdirectory(lldb-vscode)
if (CMAKE_SYSTEM_NAME MATCHES "Darwin")