Skip to content

Commit 94c66e8

Browse files
keithAlexisPerry
authored andcommitted
[bazel] Switch mach_gen to apple_genrule (llvm#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.
1 parent e80d5d2 commit 94c66e8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,7 @@ cc_library(
869869
],
870870
)
871871

872-
genrule(
872+
apple_genrule(
873873
name = "mach_gen",
874874
srcs = ["tools/debugserver/source/MacOSX/dbgnub-mig.defs"],
875875
outs = [
@@ -878,7 +878,10 @@ genrule(
878878
"mach_excUser.c",
879879
],
880880
cmd = "mig -header $(location :mach_exc.h) -server $(location :mach_excServer.c) -user $(location :mach_excUser.c) $(SRCS)",
881-
tags = ["nobuildkite"],
881+
tags = [
882+
"manual",
883+
"nobuildkite",
884+
],
882885
target_compatible_with = select({
883886
"@platforms//os:macos": [],
884887
"//conditions:default": ["@platforms//:incompatible"],

0 commit comments

Comments
 (0)