Vendor import of lldb release_80 branch r353167:

https://llvm.org/svn/llvm-project/lldb/branches/release_80@353167
This commit is contained in:
Dimitry Andric 2019-02-05 18:40:11 +00:00
parent 38e660c46f
commit 012155a876
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/vendor/lldb/dist-release_80/; revision=343804
svn path=/vendor/lldb/lldb-release_80-r354130/; revision=344175; tag=vendor/lldb/lldb-release_80-r354130
4 changed files with 13 additions and 5 deletions

View File

@ -88,7 +88,9 @@ function(add_lldb_library name)
# Hack: only some LLDB libraries depend on the clang autogenerated headers,
# but it is simple enough to make all of LLDB depend on some of those
# headers without negatively impacting much of anything.
add_dependencies(${name} clang-tablegen-targets)
if(NOT LLDB_BUILT_STANDALONE)
add_dependencies(${name} clang-tablegen-targets)
endif()
# Add in any extra C++ compilation flags for this library.
target_compile_options(${name} PRIVATE ${PARAM_EXTRA_CXXFLAGS})

View File

@ -58,7 +58,7 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
set(LLVM_DIR ${LLVM_OBJ_ROOT}/cmake/modules/CMakeFiles CACHE PATH "Path to LLVM build tree CMake files")
set(LLVM_BINARY_DIR ${LLVM_OBJ_ROOT} CACHE PATH "Path to LLVM build tree")
set(LLVM_MAIN_SRC_DIR ${MAIN_SRC_DIR} CACHE PATH "Path to LLVM source tree")
set(LLVM_EXTERNAL_LIT ${LLVM_TOOLS_BINARY_DIR}/llvm-lit CACHE PATH "Path to llvm-lit")
set(LLVM_DEFAULT_EXTERNAL_LIT ${LLVM_TOOLS_BINARY_DIR}/llvm-lit CACHE PATH "Path to llvm-lit")
find_program(LLVM_TABLEGEN_EXE "llvm-tblgen" ${LLVM_TOOLS_BINARY_DIR}
NO_DEFAULT_PATH)

View File

@ -26,9 +26,6 @@ list(APPEND LLDB_TEST_DEPS
llvm-config
llvm-mc
llvm-objcopy
FileCheck
count
not
)
if(TARGET lld)
@ -55,6 +52,14 @@ configure_lit_site_cfg(
${CMAKE_CURRENT_SOURCE_DIR}/Suite/lit.site.cfg.in
${CMAKE_CURRENT_BINARY_DIR}/Suite/lit.site.cfg)
if(NOT LLDB_BUILT_STANDALONE)
list(APPEND LLDB_TEST_DEPS
FileCheck
count
not
)
endif()
add_lit_testsuite(check-lldb-lit "Running lldb lit test suite"
${CMAKE_CURRENT_BINARY_DIR}
DEPENDS ${LLDB_TEST_DEPS}

View File

@ -11,6 +11,7 @@ add_lldb_library(lldbPluginProcessNetBSD PLUGIN
lldbUtility
lldbPluginProcessPOSIX
lldbPluginProcessUtility
util
LINK_COMPONENTS
Support
)