[llvm] [bazel] Switch mach_gen to apple_genrule (PR #96551)

Keith Smiley via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 24 13:32:04 PDT 2024


https://github.com/keith created https://github.com/llvm/llvm-project/pull/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.


>From 9dd360219c529391af583f97dcf3d01591854a35 Mon Sep 17 00:00:00 2001
From: Keith Smiley <keithbsmiley at gmail.com>
Date: Mon, 24 Jun 2024 20:31:15 +0000
Subject: [PATCH] [bazel] Switch mach_gen to apple_genrule

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/bazel/llvm-project-overlay/lldb/BUILD.bazel b/utils/bazel/llvm-project-overlay/lldb/BUILD.bazel
index ddcaea5184d43..095092efb20fd 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 = [



More information about the llvm-commits mailing list