[Lldb-commits] [lldb] [lldb][test] Add support for building Wasm test inferiors (PR #192872)

Max Desiatov via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 20 02:40:23 PDT 2026


================
@@ -108,7 +108,24 @@ def finalize_build_dictionary(dictionary):
 
     if dictionary is None:
         dictionary = {}
-    if target_is_android():
+
+    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 ""
+        )
+        if triple_os.startswith("wasi"):
+            dictionary["OS"] = "Wasm"
----------------
MaxDesiatov wrote:

technically, Wasm is an ISA, while WASI is the "OS"

```suggestion
            dictionary["OS"] = "WASI"
```

https://github.com/llvm/llvm-project/pull/192872


More information about the lldb-commits mailing list