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

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


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

Adds the PluginObjectFileXCOFF cc_library to the lldb Bazel overlay, modeled on PluginObjectFileELF/PluginObjectFileCOFF and mirroring source/Plugins/ObjectFile/XCOFF/CMakeLists.txt (lldbCore, lldbHost, lldbSymbol, lldbTarget; llvm BinaryFormat/Object/Support). 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 12996c096be9fc8793fd919543cb027dc3da4e97 Mon Sep 17 00:00:00 2001
From: David Young <davidayoung at meta.com>
Date: Wed, 15 Jul 2026 05:12:29 -0700
Subject: [PATCH] [lldb][bazel] Add ObjectFileXCOFF plugin library to the Bazel
 overlay

Adds the PluginObjectFileXCOFF cc_library to the lldb Bazel overlay,
modeled on PluginObjectFileELF/PluginObjectFileCOFF and mirroring
source/Plugins/ObjectFile/XCOFF/CMakeLists.txt (lldbCore, lldbHost,
lldbSymbol, lldbTarget; llvm BinaryFormat/Object/Support). The library
is intentionally left out of DEFAULT_PLUGINS.
---
 .../lldb/source/Plugins/BUILD.bazel           | 19 +++++++++++++++++++
 1 file changed, 19 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 2557c36470ecf..031b0a18c4240 100644
--- a/utils/bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel
@@ -2176,6 +2176,25 @@ cc_library(
     ],
 )
 
+cc_library(
+    name = "PluginObjectFileXCOFF",
+    srcs = glob(["ObjectFile/XCOFF/*.cpp"]),
+    hdrs = glob(["ObjectFile/XCOFF/*.h"]),
+    includes = [".."],
+    deps = [
+        "//lldb:Core",
+        "//lldb:Headers",
+        "//lldb:Host",
+        "//lldb:Symbol",
+        "//lldb:SymbolHeaders",
+        "//lldb:Target",
+        "//lldb:TargetHeaders",
+        "//llvm:BinaryFormat",
+        "//llvm:Object",
+        "//llvm:Support",
+    ],
+)
+
 cc_library(
     name = "PluginUnwindAssemblyX86",
     srcs = glob(["UnwindAssembly/x86/*.cpp"]),



More information about the llvm-commits mailing list