[llvm] [bazel] Move HostMacOSXPrivateHeaders to macOS only dep (PR #91354)

Keith Smiley via llvm-commits llvm-commits at lists.llvm.org
Tue May 7 09:03:29 PDT 2024


https://github.com/keith created https://github.com/llvm/llvm-project/pull/91354

Otherwise this makes more targets that we want un-buildable on Linux. This import is only used in a `#if defined(__APPLE__)` anyways.

>From fb712d457ed244871547421f35636a5c15fa4938 Mon Sep 17 00:00:00 2001
From: Keith Smiley <keithbsmiley at gmail.com>
Date: Tue, 7 May 2024 16:01:50 +0000
Subject: [PATCH] [bazel] Move HostMacOSXPrivateHeaders to macOS only dep

Otherwise this makes more targets that we want un-buildable on Linux.
This import is only used in a `#if defined(__APPLE__)` anyways.
---
 .../bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 9c8943e44f7b..6c45cdf25cac 100644
--- a/utils/bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel
@@ -281,7 +281,6 @@ cc_library(
         "//lldb:Core",
         "//lldb:Headers",
         "//lldb:Host",
-        "//lldb:HostMacOSXPrivateHeaders",
         "//lldb:InterpreterHeaders",
         "//lldb:SymbolHeaders",
         "//lldb:TargetHeaders",
@@ -292,6 +291,7 @@ cc_library(
         "@platforms//os:macos": [
             ":PluginPlatformMacOSXObjCXX",
             ":PluginPlatformMacOSXObjCXXHeaders",
+            "//lldb:HostMacOSXPrivateHeaders",
         ],
         "//conditions:default": [],
     }),



More information about the llvm-commits mailing list