[llvm] Add missing BigArchive container plugin to lldb's bazel build (PR #210304)
David Young via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 17 06:44:12 PDT 2026
https://github.com/youngd007 updated https://github.com/llvm/llvm-project/pull/210304
>From 7bd018b0d564403143b1affb6ebd73197d7dbc7e Mon Sep 17 00:00:00 2001
From: David Young <davidayoung at meta.com>
Date: Fri, 17 Jul 2026 04:07:38 -0700
Subject: [PATCH 1/2] Add missing BigArchive container plugin to lldb's bazel
build
---
.../lldb/source/Plugins/BUILD.bazel | 14 ++++++++++++++
.../lldb/source/Plugins/plugin_config.bzl | 1 +
2 files changed, 15 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 c1ef40c57e152..9ab02b8fa0e2a 100644
--- a/utils/bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel
@@ -608,6 +608,20 @@ cc_library(
],
)
+cc_library(
+ name = "PluginObjectContainerBigArchive",
+ srcs = glob(["ObjectContainer/Big-Archive/*.cpp"]),
+ hdrs = glob(["ObjectContainer/Big-Archive/*.h"]),
+ includes = [".."],
+ deps = [
+ "//lldb:Core",
+ "//lldb:Host",
+ "//lldb:Symbol",
+ "//lldb:SymbolHeaders",
+ "//llvm:Support",
+ ],
+)
+
cc_library(
name = "PluginObjectContainerMachOFileset",
srcs = glob(["ObjectContainer/Mach-O-Fileset/*.cpp"]),
diff --git a/utils/bazel/llvm-project-overlay/lldb/source/Plugins/plugin_config.bzl b/utils/bazel/llvm-project-overlay/lldb/source/Plugins/plugin_config.bzl
index 86ebe463879dc..dce15a14069fe 100644
--- a/utils/bazel/llvm-project-overlay/lldb/source/Plugins/plugin_config.bzl
+++ b/utils/bazel/llvm-project-overlay/lldb/source/Plugins/plugin_config.bzl
@@ -51,6 +51,7 @@ DEFAULT_PLUGINS = [
"MemoryHistoryASan",
"ObjCLanguage",
"ObjCPlusPlusLanguage",
+ "ObjectContainerBigArchive",
"ObjectContainerBSDArchive",
"ObjectContainerMachOArchive",
"ObjectContainerMachOFileset",
>From 0b97949126b86603e40f7bef5b7eceb5fb5ebf30 Mon Sep 17 00:00:00 2001
From: David Young <davidayoung at meta.com>
Date: Fri, 17 Jul 2026 06:42:59 -0700
Subject: [PATCH 2/2] [bazel] Add //lldb:Utility dep to
PluginObjectContainerBigArchive
Fixes layering_check failure: the target's headers include
lldb/Utility/{ArchSpec,DataExtractor,FileSpec}.h but did not depend
on a module exporting them.
---
utils/bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel | 1 +
1 file changed, 1 insertion(+)
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 9ab02b8fa0e2a..b007c572e306a 100644
--- a/utils/bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel
@@ -618,6 +618,7 @@ cc_library(
"//lldb:Host",
"//lldb:Symbol",
"//lldb:SymbolHeaders",
+ "//lldb:Utility",
"//llvm:Support",
],
)
More information about the llvm-commits
mailing list