aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test/dotest.py
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2025-07-31 11:36:30 -0700
committerGitHub <noreply@github.com>2025-07-31 11:36:30 -0700
commitc3927086c8efe70d4b6fada3ee1d64a3c6ab6325 (patch)
tree77bec311a7a43d8f8aa0a2ca4c88f723d6ad484a /lldb/packages/Python/lldbsuite/test/dotest.py
parent4cec4938c67b5dec64a2512806f84b3ddcd499f2 (diff)
downloadllvm-c3927086c8efe70d4b6fada3ee1d64a3c6ab6325.zip
llvm-c3927086c8efe70d4b6fada3ee1d64a3c6ab6325.tar.gz
llvm-c3927086c8efe70d4b6fada3ee1d64a3c6ab6325.tar.bz2
[lldb] Support Darwin cross compilation for remote Linux test suite runs (#151403)
Fix cross-compilation of test inferiors on Darwin, targeting remote Linux. This requires specifying the target triple and using LLD for linking. Fixes #150806
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/dotest.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/dotest.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py
index 24236e7..31b48dc 100644
--- a/lldb/packages/Python/lldbsuite/test/dotest.py
+++ b/lldb/packages/Python/lldbsuite/test/dotest.py
@@ -321,8 +321,13 @@ def parseOptionsAndInitTestdirs():
logging.error("No SDK found with the name %s; aborting...", args.apple_sdk)
sys.exit(-1)
+ if args.triple:
+ configuration.triple = args.triple
+
if args.arch:
configuration.arch = args.arch
+ elif args.triple:
+ configuration.arch = args.triple.split("-")[0]
else:
configuration.arch = platform_machine