diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2022-08-19 15:14:15 -0700 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2022-08-19 15:20:41 -0700 |
commit | cc0b5ebf7fc8beb8fa907730e2d8f52d4c31bdc7 (patch) | |
tree | 8ef47f63a7f178bf1c3b90e11b4bd45889049cbf /lldb/packages/Python/lldbsuite/test/dotest.py | |
parent | 9e51cbac9ef90bf6c239d1eab21f3f857f2343bb (diff) | |
download | llvm-cc0b5ebf7fc8beb8fa907730e2d8f52d4c31bdc7.zip llvm-cc0b5ebf7fc8beb8fa907730e2d8f52d4c31bdc7.tar.gz llvm-cc0b5ebf7fc8beb8fa907730e2d8f52d4c31bdc7.tar.bz2 |
[lldb] Support specifying a custom libcxx for the API tests
This patch combines D129166 (to always pick the just-built libc++) and
D132257 (to allow customizing the libc++ for testing). The common goal
is to avoid picking up an unexpected libc++ for testing.
Differential revision: https://reviews.llvm.org/D132263
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/dotest.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/dotest.py | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py index fd21263..37842c9 100644 --- a/lldb/packages/Python/lldbsuite/test/dotest.py +++ b/lldb/packages/Python/lldbsuite/test/dotest.py @@ -280,10 +280,17 @@ def parseOptionsAndInitTestdirs(): logging.warning('No valid FileCheck executable; some tests may fail...') logging.warning('(Double-check the --llvm-tools-dir argument to dotest.py)') - configuration.hermetic_libcxx = args.hermetic_libcxx - if configuration.hermetic_libcxx and args.lldb_platform_name: - configuration.hermetic_libcxx = False - logging.warning('Hermetic libc++ is not supported for remote runs: ignoring --hermetic-libcxx') + configuration.libcxx_include_dir = args.libcxx_include_dir + configuration.libcxx_library_dir = args.libcxx_library_dir + if args.libcxx_include_dir or args.libcxx_library_dir: + if args.lldb_platform_name: + logging.warning('Custom libc++ is not supported for remote runs: ignoring --libcxx arguments') + elif args.libcxx_include_dir and args.libcxx_library_dir: + configuration.libcxx_include_dir = args.libcxx_include_dir + configuration.libcxx_library_dir = args.libcxx_library_dir + else: + logging.error('Custom libc++ requires both --libcxx-include-dir and --libcxx-library-dir') + sys.exit(-1) if args.channels: lldbtest_config.channels = args.channels |