[llvm] [bazel] Remove DebugInfo files covered by more specific targets (PR #124138)
Jordan Rupprecht via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 23 08:07:02 PST 2025
https://github.com/rupprecht created https://github.com/llvm/llvm-project/pull/124138
For example, `include/llvm/DebugInfo/DWARF/DWARFContext.h` is included as part of both the generic "DebugInfo" target as well as the specific "DebugInfoDWARF" target. It should only be in one. Tooling that manages build dependencies should be more accurate now.
>From 66c66eab605028c7def74299b1fdaf02f06485b3 Mon Sep 17 00:00:00 2001
From: Jordan Rupprecht <rupprecht at google.com>
Date: Thu, 23 Jan 2025 08:03:30 -0800
Subject: [PATCH] [bazel] Remove DebugInfo files covered by more specific
DebugInfo targets
For example, `include/llvm/DebugInfo/DWARF/DWARFContext.h` is included as part of both the generic "DebugInfo" target as well as the specific "DebugInfoDWARF" target. It should only be in one. Tooling that manages build dependencies should be more accurate now.
---
utils/bazel/llvm-project-overlay/llvm/BUILD.bazel | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
index 56dff6b3ad5003..db7502922295ee 100644
--- a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
@@ -424,9 +424,8 @@ cc_library(
cc_library(
name = "DebugInfo",
- hdrs = glob(["include/llvm/DebugInfo/**/*.h"]),
+ hdrs = glob(["include/llvm/DebugInfo/*.h"]),
copts = llvm_copts,
- textual_hdrs = glob(["include/llvm/DebugInfo/**/*.def"]),
deps = [
":Object",
":Support",
More information about the llvm-commits
mailing list