[llvm] [bazel] Port #96596 (PR #98411)
Keith Smiley via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 10 16:17:05 PDT 2024
https://github.com/keith created https://github.com/llvm/llvm-project/pull/98411
This change added a circular dependency in the profile and core headers,
so this splits out a target with just the headers for use by the core
library.
>From a2b82ead3f26c40c13159c8074e37db33d38f3f8 Mon Sep 17 00:00:00 2001
From: Keith Smiley <keithbsmiley at gmail.com>
Date: Wed, 10 Jul 2024 23:16:18 +0000
Subject: [PATCH] [bazel] Port #96596
This change added a circular dependency in the profile and core headers,
so this splits out a target with just the headers for use by the core
library.
---
utils/bazel/llvm-project-overlay/bolt/BUILD.bazel | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/utils/bazel/llvm-project-overlay/bolt/BUILD.bazel b/utils/bazel/llvm-project-overlay/bolt/BUILD.bazel
index 7413b018ef329..a1c089a89db87 100644
--- a/utils/bazel/llvm-project-overlay/bolt/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/bolt/BUILD.bazel
@@ -132,6 +132,13 @@ cc_library(
],
)
+cc_library(
+ name = "ProfileHeaders",
+ hdrs = glob(["include/bolt/Profile/*.h"]),
+ includes = ["include"],
+ visibility = ["//visibility:private"],
+)
+
cc_library(
name = "Profile",
srcs = glob([
@@ -258,6 +265,7 @@ cc_library(
]),
includes = ["include"],
deps = [
+ ":ProfileHeaders",
":Utils",
"//llvm:Analysis",
"//llvm:BinaryFormat",
More information about the llvm-commits
mailing list