[llvm] [bazel] Mark linux LLDB plugin as linux only (PR #89961)
Keith Smiley via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 24 10:51:03 PDT 2024
https://github.com/keith created https://github.com/llvm/llvm-project/pull/89961
Otherwise if you bazel build //... on macOS this fails to build
>From ef4cefdcc4d2761b71c9ee54088050b361cc12db Mon Sep 17 00:00:00 2001
From: Keith Smiley <keithbsmiley at gmail.com>
Date: Tue, 23 Apr 2024 17:59:32 -0400
Subject: [PATCH] [bazel] Mark linux LLDB plugin as linux only
Otherwise if you bazel build //... on macOS this fails to build
---
.../llvm-project-overlay/lldb/source/Plugins/BUILD.bazel | 4 ++++
1 file changed, 4 insertions(+)
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 e0907a838148f5..13fec77fe567bb 100644
--- a/utils/bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel
@@ -2092,6 +2092,10 @@ cc_library(
srcs = glob(["Process/Linux/*.cpp"]),
hdrs = glob(["Process/Linux/*.h"]),
include_prefix = "Plugins",
+ target_compatible_with = select({
+ "@platforms//os:linux": [],
+ "//conditions:default": ["@platforms//:incompatible"],
+ }),
deps = [
":PluginProcessPOSIX",
":PluginProcessUtility",
More information about the llvm-commits
mailing list