From 1ec95939ec4edfdab7fcab8828db3e1d11eb2e25 Mon Sep 17 00:00:00 2001 From: viyatb-oai Date: Tue, 9 Jun 2026 16:16:15 -0700 Subject: [PATCH] fix: use BLAKE3 intrinsics for Windows Bazel Co-authored-by: Codex noreply@openai.com --- MODULE.bazel | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/MODULE.bazel b/MODULE.bazel index c4ef9500a7..25340ed7af 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -210,6 +210,18 @@ crate.from_cargo( use_experimental_platforms = True, ) +# BLAKE3 normally builds hand-written assembly on x86_64. In the Windows GNU +# cross configuration, that archive is produced by the build script but is not +# propagated to the Rust link action. Prefer BLAKE3's equivalent Rust +# intrinsics implementation for the affected targets so every Rust crate that +# transitively uses BLAKE3 remains buildable under Windows linting. +crate.annotation( + crate = "blake3", + crate_features_select = { + "x86_64-pc-windows-gnullvm": ["prefer_intrinsics"], + }, +) + bazel_dep(name = "zstd", version = "1.5.7") crate.annotation(