From dd8d978b7642b410f3a4895aa20f0aada4a0f7e4 Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Mon, 24 Jun 2024 14:42:51 -0700 Subject: [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. --- utils/bazel/llvm-project-overlay/lldb/BUILD.bazel | 7 +++++-- 1 file 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"], -- cgit v1.1