diff options
author | Vladislav Dzhidzhoev <vdzhidzhoev@accesssoftek.com> | 2024-04-13 23:55:25 +0000 |
---|---|---|
committer | Vladislav Dzhidzhoev <vdzhidzhoev@accesssoftek.com> | 2024-06-03 17:30:10 +0200 |
commit | 6b7b05b55926f1fecae34312a89c4271def7aa3a (patch) | |
tree | b42a374756621c79cbdf8bc408b0c60888dc5400 /lldb/packages/Python/lldbsuite/test/dotest.py | |
parent | ac4cca3cb1186aa1e3e6a94c70cc3d34a91a67c3 (diff) | |
download | llvm-6b7b05b55926f1fecae34312a89c4271def7aa3a.zip llvm-6b7b05b55926f1fecae34312a89c4271def7aa3a.tar.gz llvm-6b7b05b55926f1fecae34312a89c4271def7aa3a.tar.bz2 |
[lldb][test] Add --make argument to dotest.py (#93883)
This argument allows to specify the path to make which is used by
LLDB API tests to compile test programs.
It might come in handy for setting up cross-platform remote runs of API tests on Windows host.
It can be used to override the make path of LLDB API tests using `LLDB_TEST_USER_ARGS` argument:
```
cmake ...
-DLLDB_TEST_USER_ARGS="...;--make;C:\\Path\\to\\make.exe;..."
...
```
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/dotest.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/dotest.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py index 70bc1d8..06acfb2 100644 --- a/lldb/packages/Python/lldbsuite/test/dotest.py +++ b/lldb/packages/Python/lldbsuite/test/dotest.py @@ -266,6 +266,13 @@ def parseOptionsAndInitTestdirs(): configuration.compiler = candidate break + if args.make: + configuration.make_path = args.make + elif platform_system == "FreeBSD" or platform_system == "NetBSD": + configuration.make_path = "gmake" + else: + configuration.make_path = "make" + if args.dsymutil: configuration.dsymutil = args.dsymutil elif platform_system == "Darwin": |