aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test/dotest.py
diff options
context:
space:
mode:
authorVladislav Dzhidzhoev <vdzhidzhoev@accesssoftek.com>2024-04-13 23:55:25 +0000
committerVladislav Dzhidzhoev <vdzhidzhoev@accesssoftek.com>2024-06-03 17:30:10 +0200
commit6b7b05b55926f1fecae34312a89c4271def7aa3a (patch)
treeb42a374756621c79cbdf8bc408b0c60888dc5400 /lldb/packages/Python/lldbsuite/test/dotest.py
parentac4cca3cb1186aa1e3e6a94c70cc3d34a91a67c3 (diff)
downloadllvm-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.py7
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":