[llvm] [bazel] Add gdb-scripts filegroup in llvm and mlir (PR #146358)

Thomas Hashem via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 30 07:30:25 PDT 2025


https://github.com/hashemthomas1 created https://github.com/llvm/llvm-project/pull/146358

This would be useful if downstream projects want to use the provided pretty printers

>From 4947ac277b6ba1f42f20061e6d28664a8ddca139 Mon Sep 17 00:00:00 2001
From: Thomas <hashemthomas1 at gmail.com>
Date: Mon, 30 Jun 2025 17:15:43 +0300
Subject: [PATCH] [bazel] Add gdb-scripts filegroup in llvm and mlir

This would be useful if downstream projects want to use the provided
pretty printers
---
 utils/bazel/llvm-project-overlay/llvm/BUILD.bazel | 5 +++++
 utils/bazel/llvm-project-overlay/mlir/BUILD.bazel | 5 +++++
 2 files changed, 10 insertions(+)

diff --git a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
index c9fbd10d8c5e5..1fd9fde0ff1eb 100644
--- a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
@@ -5160,6 +5160,11 @@ cc_binary(
     ],
 )
 
+filegroup(
+    name = "gdb-scripts",
+    srcs = glob(["utils/gdb-scripts/*"]),
+)
+
 ################################################################################
 # Begin testonly libraries
 
diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
index 5320dc32163ef..7e4607f557aae 100644
--- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
@@ -30,6 +30,11 @@ exports_files([
     "utils/textmate/mlir.json",
 ])
 
+filegroup(
+    name = "gdb-scripts",
+    srcs = glob(["utils/gdb-scripts/*"]),
+)
+
 bool_flag(
     name = "enable_cuda",
     build_setting_default = False,



More information about the llvm-commits mailing list