aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test/dotest.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/dotest.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/dotest.py15
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