aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Smiley <keithbsmiley@gmail.com>2024-06-24 14:42:51 -0700
committerGitHub <noreply@github.com>2024-06-24 14:42:51 -0700
commitdd8d978b7642b410f3a4895aa20f0aada4a0f7e4 (patch)
tree8d0e16f7413cf57361fcd231fe8199ba16132059
parentbea7f3d8739a12c599525c18c151f37b1293a080 (diff)
downloadllvm-dd8d978b7642b410f3a4895aa20f0aada4a0f7e4.zip
llvm-dd8d978b7642b410f3a4895aa20f0aada4a0f7e4.tar.gz
llvm-dd8d978b7642b410f3a4895aa20f0aada4a0f7e4.tar.bz2
[bazel] Switch mach_gen to apple_genrule (#96551)
mig is a tool vendored with Xcode. Using apple_genrule makes sure that the bazel selected version of Xcode is preferred, and that the action is invalidated when that version changes.
-rw-r--r--utils/bazel/llvm-project-overlay/lldb/BUILD.bazel7
1 files changed, 5 insertions, 2 deletions
diff --git a/utils/bazel/llvm-project-overlay/lldb/BUILD.bazel b/utils/bazel/llvm-project-overlay/lldb/BUILD.bazel
index ddcaea5..50da741 100644
--- a/utils/bazel/llvm-project-overlay/lldb/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/lldb/BUILD.bazel
@@ -869,7 +869,7 @@ cc_library(
],
)
-genrule(
+apple_genrule(
name = "mach_gen",
srcs = ["tools/debugserver/source/MacOSX/dbgnub-mig.defs"],
outs = [
@@ -878,7 +878,10 @@ genrule(
"mach_excUser.c",
],
cmd = "mig -header $(location :mach_exc.h) -server $(location :mach_excServer.c) -user $(location :mach_excUser.c) $(SRCS)",
- tags = ["nobuildkite"],
+ tags = [
+ "manual",
+ "nobuildkite",
+ ],
target_compatible_with = select({
"@platforms//os:macos": [],
"//conditions:default": ["@platforms//:incompatible"],