davide updated this revision to Diff 195443. davide added a comment. updated.
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D60780/new/ https://reviews.llvm.org/D60780 Files: lldb/cmake/modules/AddLLDB.cmake lldb/lit/lit.site.cfg.py.in lldb/lit/tools/lldb-instr/lit.local.cfg lldb/tools/CMakeLists.txt Index: lldb/tools/CMakeLists.txt =================================================================== --- lldb/tools/CMakeLists.txt +++ lldb/tools/CMakeLists.txt @@ -1,10 +1,11 @@ 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) + +add_lldb_optional_tool_subdirectory(lldb-instr) +add_lldb_optional_tool_subdirectory(lldb-vscode) if (CMAKE_SYSTEM_NAME MATCHES "Darwin") add_subdirectory(darwin-debug) Index: lldb/lit/tools/lldb-instr/lit.local.cfg =================================================================== --- /dev/null +++ lldb/lit/tools/lldb-instr/lit.local.cfg @@ -0,0 +1,4 @@ +import sys + +if config.has_lldb_instr == "OFF": + config.unsupported = True Index: lldb/lit/lit.site.cfg.py.in =================================================================== --- lldb/lit/lit.site.cfg.py.in +++ lldb/lit/lit.site.cfg.py.in @@ -18,6 +18,8 @@ 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.has_lldb_instr = "@LLDB_TOOL_LLDB_INSTR_BUILD@" +config.has_lldb_vscode = "@LLDB_TOOL_LLDB_VSCODE_BUILD@" config.maxIndividualTestTime = 600 # Support substitution of the tools and libs dirs with user parameters. This is Index: lldb/cmake/modules/AddLLDB.cmake =================================================================== --- lldb/cmake/modules/AddLLDB.cmake +++ lldb/cmake/modules/AddLLDB.cmake @@ -141,6 +141,11 @@ endif() endfunction(add_lldb_executable) + +macro(add_lldb_optional_tool_subdirectory name) + add_llvm_subdirectory(LLDB TOOL ${name}) +endmacro() + function(add_lldb_tool name) add_lldb_executable(${name} GENERATE_INSTALL ${ARGN}) endfunction()
Index: lldb/tools/CMakeLists.txt =================================================================== --- lldb/tools/CMakeLists.txt +++ lldb/tools/CMakeLists.txt @@ -1,10 +1,11 @@ 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) + +add_lldb_optional_tool_subdirectory(lldb-instr) +add_lldb_optional_tool_subdirectory(lldb-vscode) if (CMAKE_SYSTEM_NAME MATCHES "Darwin") add_subdirectory(darwin-debug) Index: lldb/lit/tools/lldb-instr/lit.local.cfg =================================================================== --- /dev/null +++ lldb/lit/tools/lldb-instr/lit.local.cfg @@ -0,0 +1,4 @@ +import sys + +if config.has_lldb_instr == "OFF": + config.unsupported = True Index: lldb/lit/lit.site.cfg.py.in =================================================================== --- lldb/lit/lit.site.cfg.py.in +++ lldb/lit/lit.site.cfg.py.in @@ -18,6 +18,8 @@ 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.has_lldb_instr = "@LLDB_TOOL_LLDB_INSTR_BUILD@" +config.has_lldb_vscode = "@LLDB_TOOL_LLDB_VSCODE_BUILD@" config.maxIndividualTestTime = 600 # Support substitution of the tools and libs dirs with user parameters. This is Index: lldb/cmake/modules/AddLLDB.cmake =================================================================== --- lldb/cmake/modules/AddLLDB.cmake +++ lldb/cmake/modules/AddLLDB.cmake @@ -141,6 +141,11 @@ endif() endfunction(add_lldb_executable) + +macro(add_lldb_optional_tool_subdirectory name) + add_llvm_subdirectory(LLDB TOOL ${name}) +endmacro() + function(add_lldb_tool name) add_lldb_executable(${name} GENERATE_INSTALL ${ARGN}) endfunction()
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits