diff options
author | Adrian Prantl <aprantl@apple.com> | 2024-04-29 13:26:24 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-29 13:26:24 -0700 |
commit | 975eca0e6a3459e59e96b0df33ea0cfbd157c597 (patch) | |
tree | 27a667977703630ed74633ed9dbb3484450fcb41 /lldb/packages/Python/lldbsuite/test/dotest.py | |
parent | 8ba880b587074ad6c8624ed45ea2b289f653667f (diff) | |
download | llvm-975eca0e6a3459e59e96b0df33ea0cfbd157c597.zip llvm-975eca0e6a3459e59e96b0df33ea0cfbd157c597.tar.gz llvm-975eca0e6a3459e59e96b0df33ea0cfbd157c597.tar.bz2 |
Add a new SBExpressionOptions::SetLanguage() API (NFCI) (#89981)
that separates out language and version. To avoid reinventing the wheel
and introducing subtle incompatibilities, this API uses the table of
languages and versiond defined by the upcoming DWARF 6 standard
(https://dwarfstd.org/languages-v6.html). While the DWARF 6 spec is not
finialized, the list of languages is broadly considered stable.
The primary motivation for this is to allow the Swift language plugin to
switch between language dialects between, e.g., Swift 5.9 and 6.0 with
out introducing a ton of new language codes. On the main branch this
change is considered NFC.
Depends on https://github.com/llvm/llvm-project/pull/89980
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/dotest.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/dotest.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py index 2ec4a84..ebabf34 100644 --- a/lldb/packages/Python/lldbsuite/test/dotest.py +++ b/lldb/packages/Python/lldbsuite/test/dotest.py @@ -423,6 +423,7 @@ def parseOptionsAndInitTestdirs(): configuration.lldb_module_cache_dir = os.path.join( configuration.test_build_dir, "module-cache-lldb" ) + if args.clang_module_cache_dir: configuration.clang_module_cache_dir = args.clang_module_cache_dir else: @@ -432,6 +433,8 @@ def parseOptionsAndInitTestdirs(): if args.lldb_libs_dir: configuration.lldb_libs_dir = args.lldb_libs_dir + if args.lldb_obj_root: + configuration.lldb_obj_root = args.lldb_obj_root if args.enabled_plugins: configuration.enabled_plugins = args.enabled_plugins |