diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2025-07-31 11:36:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-31 11:36:30 -0700 |
commit | c3927086c8efe70d4b6fada3ee1d64a3c6ab6325 (patch) | |
tree | 77bec311a7a43d8f8aa0a2ca4c88f723d6ad484a /lldb/packages/Python/lldbsuite/test/dotest.py | |
parent | 4cec4938c67b5dec64a2512806f84b3ddcd499f2 (diff) | |
download | llvm-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.py | 5 |
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 |