Skip to content

Commit 57f0284

Browse files
authored
[bazel] Mark linux LLDB plugin as linux only (#89961)
Otherwise if you bazel build //... on macOS this fails to build
1 parent 2e770ed commit 57f0284

File tree

1 file changed

+4
-0
lines changed
  • utils/bazel/llvm-project-overlay/lldb/source/Plugins

1 file changed

+4
-0
lines changed

utils/bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2092,6 +2092,10 @@ cc_library(
20922092
srcs = glob(["Process/Linux/*.cpp"]),
20932093
hdrs = glob(["Process/Linux/*.h"]),
20942094
include_prefix = "Plugins",
2095+
target_compatible_with = select({
2096+
"@platforms//os:linux": [],
2097+
"//conditions:default": ["@platforms//:incompatible"],
2098+
}),
20952099
deps = [
20962100
":PluginProcessPOSIX",
20972101
":PluginProcessUtility",

0 commit comments

Comments
 (0)