[llvm] [lldb][bazel] Add PlatformWasm plugin library to the Bazel overlay (PR #209749)

David Young via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 15 05:25:50 PDT 2026


https://github.com/youngd007 created https://github.com/llvm/llvm-project/pull/209749

Adds the PluginPlatformWasm cc_library plus its PlatformWasmProperties gentbl_cc_library (settings .td, modeled on PlatformQemuUserProperties) to the lldb Bazel overlay. Deps mirror
source/Plugins/Platform/WebAssembly/CMakeLists.txt (lldbCore, lldbHost, lldbTarget, lldbUtility, Support) plus the :PluginPlatformGDB and :PluginProcessWasm plugin deps its GDB-remote/Web-Inspector sources use. The library is intentionally left out of DEFAULT_PLUGINS.

bazel rule assisted with: claude

Can confirm this library will convert to BUCK internally at Meta and build with buck2 where we do have in the default plugin list. I left it out here, unless there's a desire to add it in.

>From 2433f4920bd78fdf57a345d3cc2e8b46121432df Mon Sep 17 00:00:00 2001
From: David Young <davidayoung at meta.com>
Date: Wed, 15 Jul 2026 05:19:54 -0700
Subject: [PATCH] [lldb][bazel] Add PlatformWasm plugin library to the Bazel
 overlay

Adds the PluginPlatformWasm cc_library plus its PlatformWasmProperties
gentbl_cc_library (settings .td, modeled on PlatformQemuUserProperties)
to the lldb Bazel overlay. Deps mirror
source/Plugins/Platform/WebAssembly/CMakeLists.txt (lldbCore, lldbHost,
lldbTarget, lldbUtility, Support) plus the :PluginPlatformGDB and
:PluginProcessWasm plugin deps its GDB-remote/Web-Inspector sources use.
The library is intentionally left out of DEFAULT_PLUGINS.
---
 .../lldb/source/Plugins/BUILD.bazel           | 32 +++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/utils/bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel b/utils/bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel
index c591c4b3fe243..7b758fa5d537e 100644
--- a/utils/bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel
@@ -716,6 +716,38 @@ cc_library(
     ],
 )
 
+gentbl_cc_library(
+    name = "PlatformWasmProperties",
+    strip_include_prefix = "Platform/WebAssembly",
+    tbl_outs = {
+        "Platform/WebAssembly/PlatformWasmProperties.inc": ["-gen-lldb-property-defs"],
+        "Platform/WebAssembly/PlatformWasmPropertiesEnum.inc": ["-gen-lldb-property-enum-defs"],
+    },
+    tblgen = "//lldb:lldb-tblgen",
+    td_file = "Platform/WebAssembly/PlatformWasmProperties.td",
+    deps = ["//lldb:CoreTdFiles"],
+)
+
+cc_library(
+    name = "PluginPlatformWasm",
+    srcs = glob(["Platform/WebAssembly/*.cpp"]),
+    hdrs = glob(["Platform/WebAssembly/*.h"]),
+    includes = [".."],
+    deps = [
+        ":PlatformWasmProperties",
+        ":PluginPlatformGDB",
+        ":PluginProcessWasm",
+        "//lldb:Core",
+        "//lldb:CoreHeaders",
+        "//lldb:Headers",
+        "//lldb:Host",
+        "//lldb:Target",
+        "//lldb:TargetHeaders",
+        "//lldb:Utility",
+        "//llvm:Support",
+    ],
+)
+
 cc_library(
     name = "PluginPlatformGDB",
     srcs = glob(["Platform/gdb-server/*.cpp"]),



More information about the llvm-commits mailing list