forked from OSchip/llvm-project
[lldb] Hoist --framework argument out of LLDB_TEST_COMMON_ARGS (NFC)
Give the framework argument its own variable (LLDB_FRAMEWORK_DIR) so that we can configure it in lit.site.cfg.py if we so desire.
This commit is contained in:
parent
3f2fb0132f
commit
2965e9bd5e
|
@ -98,7 +98,7 @@ endif()
|
|||
|
||||
if(CMAKE_HOST_APPLE)
|
||||
if(LLDB_BUILD_FRAMEWORK)
|
||||
list(APPEND LLDB_TEST_COMMON_ARGS --framework ${LLDB_FRAMEWORK_ABSOLUTE_BUILD_DIR}/LLDB.framework)
|
||||
set(LLDB_FRAMEWORK_DIR ${LLDB_FRAMEWORK_ABSOLUTE_BUILD_DIR}/LLDB.framework)
|
||||
endif()
|
||||
|
||||
# Use the same identity for testing
|
||||
|
|
|
@ -203,6 +203,9 @@ if is_configured('yaml2obj'):
|
|||
if is_configured('lldb_libs_dir'):
|
||||
dotest_cmd += ['--lldb-libs-dir', config.lldb_libs_dir]
|
||||
|
||||
if is_configured('lldb_framework_dir'):
|
||||
dotest_cmd += ['--framework', config.lldb_framework_dir]
|
||||
|
||||
if 'lldb-repro-capture' in config.available_features or \
|
||||
'lldb-repro-replay' in config.available_features:
|
||||
dotest_cmd += ['--skip-category=lldb-vscode', '--skip-category=std-module']
|
||||
|
|
|
@ -11,6 +11,7 @@ config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
|
|||
config.lldb_obj_root = "@LLDB_BINARY_DIR@"
|
||||
config.lldb_src_root = "@LLDB_SOURCE_DIR@"
|
||||
config.lldb_libs_dir = "@LLDB_LIBS_DIR@"
|
||||
config.lldb_framework_dir = "@LLDB_FRAMEWORK_DIR@"
|
||||
config.cmake_cxx_compiler = "@CMAKE_CXX_COMPILER@"
|
||||
config.host_os = "@HOST_OS@"
|
||||
config.host_triple = "@LLVM_HOST_TRIPLE@"
|
||||
|
|
|
@ -12,6 +12,7 @@ dsymutil = '@LLDB_TEST_DSYMUTIL_CONFIGURED@'
|
|||
filecheck = '@LLDB_TEST_FILECHECK_CONFIGURED@'
|
||||
yaml2obj = '@LLDB_TEST_YAML2OBJ_CONFIGURED@'
|
||||
lldb_libs_dir = "@LLDB_LIBS_DIR_CONFIGURED@"
|
||||
lldb_framework_dir = "@LLDB_FRAMEWORK_DIR@"
|
||||
lldb_build_intel_pt = "@LLDB_BUILD_INTEL_PT@"
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
@ -28,6 +29,7 @@ if __name__ == '__main__':
|
|||
cmd.extend(['--yaml2obj', yaml2obj])
|
||||
cmd.extend(['--filecheck', filecheck])
|
||||
cmd.extend(['--lldb-libs-dir', lldb_libs_dir])
|
||||
cmd.extend(['--framework', lldb_framework_dir])
|
||||
if lldb_build_intel_pt == "1":
|
||||
cmd.extend(['--enable-plugin', 'intel-pt'])
|
||||
cmd.extend(wrapper_args)
|
||||
|
|
Loading…
Reference in New Issue