[Lldb-commits] [lldb] [lldb][test] Add support for building Wasm test inferiors (PR #192872)
via lldb-commits
lldb-commits at lists.llvm.org
Sun Apr 19 13:56:57 PDT 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r origin/main...HEAD lldb/packages/Python/lldbsuite/test/builders/builder.py lldb/packages/Python/lldbsuite/test/configuration.py lldb/packages/Python/lldbsuite/test/dotest.py lldb/packages/Python/lldbsuite/test/dotest_args.py lldb/packages/Python/lldbsuite/test/lldbplatformutil.py lldb/packages/Python/lldbsuite/test/lldbtest.py lldb/test/API/lit.cfg.py
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- packages/Python/lldbsuite/test/dotest_args.py 2026-04-19 20:49:20.000000 +0000
+++ packages/Python/lldbsuite/test/dotest_args.py 2026-04-19 20:56:30.217955 +0000
@@ -109,11 +109,13 @@
group.add_argument(
"--resource-dir",
metavar="dir",
dest="resource_dir",
default="",
- help=textwrap.dedent("Specify the clang resource directory for cross-compiling test inferiors."),
+ help=textwrap.dedent(
+ "Specify the clang resource directory for cross-compiling test inferiors."
+ ),
)
group.add_argument(
"--llvm-tools-dir",
metavar="dir",
dest="llvm_tools_dir",
--- packages/Python/lldbsuite/test/lldbplatformutil.py 2026-04-19 20:49:20.000000 +0000
+++ packages/Python/lldbsuite/test/lldbplatformutil.py 2026-04-19 20:56:30.351517 +0000
@@ -110,11 +110,13 @@
dictionary = {}
if configuration.triple:
# When cross-compiling with an explicit triple, derive OS from it
# rather than from the selected platform.
- triple_os = configuration.triple.split("-")[1] if "-" in configuration.triple else ""
+ triple_os = (
+ configuration.triple.split("-")[1] if "-" in configuration.triple else ""
+ )
if triple_os.startswith("wasi"):
dictionary["OS"] = "Wasm"
elif triple_os == "linux" or triple_os.startswith("linux"):
dictionary["OS"] = "Linux"
elif triple_os == "windows" or triple_os.startswith("windows"):
``````````
</details>
https://github.com/llvm/llvm-project/pull/192872
More information about the lldb-commits
mailing list