From: Jonas Devlieghere Date: Sat, 29 Aug 2020 01:15:28 +0000 (-0700) Subject: [lldb] Hoist --framework argument out of LLDB_TEST_COMMON_ARGS (NFC) X-Git-Tag: llvmorg-13-init~13366 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2965e9bd5edb079746a668794865be37f6f4d3d8;p=platform%2Fupstream%2Fllvm.git [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. --- diff --git a/lldb/test/API/CMakeLists.txt b/lldb/test/API/CMakeLists.txt index 1cd705c..f07370a 100644 --- a/lldb/test/API/CMakeLists.txt +++ b/lldb/test/API/CMakeLists.txt @@ -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 diff --git a/lldb/test/API/lit.cfg.py b/lldb/test/API/lit.cfg.py index 5da12ee..893418c 100644 --- a/lldb/test/API/lit.cfg.py +++ b/lldb/test/API/lit.cfg.py @@ -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'] diff --git a/lldb/test/API/lit.site.cfg.py.in b/lldb/test/API/lit.site.cfg.py.in index b746b22..6554d05 100644 --- a/lldb/test/API/lit.site.cfg.py.in +++ b/lldb/test/API/lit.site.cfg.py.in @@ -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@" diff --git a/lldb/utils/lldb-dotest/lldb-dotest.in b/lldb/utils/lldb-dotest/lldb-dotest.in index f573d5b..86f05be 100755 --- a/lldb/utils/lldb-dotest/lldb-dotest.in +++ b/lldb/utils/lldb-dotest/lldb-dotest.in @@ -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)