From 56d69b4adf8e4624ec4399a49e0cb5f3f036daa7 Mon Sep 17 00:00:00 2001 From: jif-oai Date: Fri, 20 Mar 2026 15:45:43 +0000 Subject: [PATCH] try to fix bazel 3 --- patches/llvm_macos_sdk_local_fallback.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/llvm_macos_sdk_local_fallback.patch b/patches/llvm_macos_sdk_local_fallback.patch index d86b064213..1d9294a4a1 100644 --- a/patches/llvm_macos_sdk_local_fallback.patch +++ b/patches/llvm_macos_sdk_local_fallback.patch @@ -9,7 +9,7 @@ index 8822c51..a2c7f31 100644 def _http_pkg_archive_impl(rctx): - rctx.download( - url = rctx.attr.urls, -+ if repo_utils.platform(rctx).startswith("macos_"): ++ if repo_utils.is_darwin(rctx): + host_xcrun = rctx.which("xcrun") + if host_xcrun == None: + fail("xcrun is required to locate the local macOS SDK") @@ -22,7 +22,7 @@ index 8822c51..a2c7f31 100644 + if not sdk_path: + fail("xcrun --show-sdk-path returned an empty SDK path") + -+ rctx.file(rctx.attr.dst + "/BUILD.bazel", rctx.read("//3rd_party/macos_sdk:CLTools_macOSNMOS_SDK.BUILD.bazel")) ++ rctx.file(rctx.attr.dst + "/BUILD.bazel", rctx.read(Label("//3rd_party/macos_sdk:CLTools_macOSNMOS_SDK.BUILD.bazel"))) + rctx.symlink(sdk_path + "/System", rctx.attr.dst + "/System") + rctx.symlink(sdk_path + "/usr", rctx.attr.dst + "/usr") + rctx.symlink(sdk_path + "/Entitlements.plist", rctx.attr.dst + "/Entitlements.plist")