[llvm] [Bazel] Fixes 8d292a7 (PR #213515)

via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 2 01:04:09 PDT 2026


https://github.com/forking-google-bazel-bot[bot] created https://github.com/llvm/llvm-project/pull/213515

This fixes 8d292a7c4b952eb5e9c55ed54a17a25c85bd553c (#213265).

Buildkite error link: https://buildkite.com/llvm-project/upstream-bazel/builds?commit=8d292a7c4b952eb5e9c55ed54a17a25c85bd553c


>From d7d9f2e6cc6eccff1efe14714bb33afe5aab9be0 Mon Sep 17 00:00:00 2001
From: Google Bazel Bot <google-bazel-bot at google.com>
Date: Sun, 2 Aug 2026 08:03:57 +0000
Subject: [PATCH] Fix Bazel build for 8d292a7

Buildkite error link: https://buildkite.com/llvm-project/upstream-bazel/builds?commit=8d292a7c4b952eb5e9c55ed54a17a25c85bd553c
---
 utils/bazel/llvm-project-overlay/llvm/BUILD.bazel  | 14 +++++++++++++-
 .../llvm/unittests/BUILD.bazel                     |  1 +
 2 files changed, 14 insertions(+), 1 deletion(-)

diff --git a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
index 940998fea0261..49840b7178e8d 100644
--- a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
@@ -4340,6 +4340,16 @@ gentbl_cc_library(
     deps = [":OptParserTdFiles"],
 )
 
+cc_library(
+    name = "orc_headers",
+    hdrs = glob([
+        "include/llvm/ExecutionEngine/Orc/**/*.h",
+        "include/llvm/ExecutionEngine/JITLink/**/*.h",
+    ]),
+    copts = llvm_copts,
+    features = ["-parse_headers"],
+)
+
 cc_library(
     name = "JITLink",
     srcs = glob([
@@ -4396,7 +4406,6 @@ cc_library(
     ]),
     hdrs = glob([
         "include/llvm/ExecutionEngine/Orc/*.h",
-        "include/llvm/ExecutionEngine/Orc/RTBridge/SPS/**/*.h",
     ]) + [
         "include/llvm-c/LLJIT.h",
         "include/llvm-c/Orc.h",
@@ -4431,6 +4440,7 @@ cc_library(
         ":TransformUtils",
         ":WindowsDriver",
         ":config",
+        ":orc_headers",
     ],
 )
 
@@ -4458,6 +4468,7 @@ cc_library(
         ":Support",
         ":Target",
         ":config",
+        ":orc_headers",
     ],
 )
 
@@ -4517,6 +4528,7 @@ cc_library(
         ":Target",
         ":TargetParser",
         ":config",
+        ":orc_headers",
     ],
 )
 
diff --git a/utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel b/utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel
index 2786a9d2bd813..643e0d4de2fd9 100644
--- a/utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel
@@ -429,6 +429,7 @@ cc_test(
         "//llvm:TargetParser",
         "//llvm:TestingSupport",
         "//llvm:config",
+        "//llvm:orc_headers",
         "//third-party/unittest:gtest",
         "//third-party/unittest:gtest_main",
     ],



More information about the llvm-commits mailing list