From 75bd6a1f296d30b6ad24cc81f7d238ea5b3ae919 Mon Sep 17 00:00:00 2001 From: Friel Date: Thu, 2 Apr 2026 07:55:17 +0000 Subject: [PATCH] Fix rules_rust bootstrap patch formatting --- ...ust_windows_bootstrap_process_wrapper_linker.patch | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/patches/rules_rust_windows_bootstrap_process_wrapper_linker.patch b/patches/rules_rust_windows_bootstrap_process_wrapper_linker.patch index b42912b586..d41c59d3fb 100644 --- a/patches/rules_rust_windows_bootstrap_process_wrapper_linker.patch +++ b/patches/rules_rust_windows_bootstrap_process_wrapper_linker.patch @@ -1,9 +1,9 @@ --- a/rust/private/rustc.bzl +++ b/rust/private/rustc.bzl @@ -472,7 +472,19 @@ - ) - ld_is_direct_driver = False - + ) + ld_is_direct_driver = False + - if not ld or toolchain.linker_preference == "rust": + # The bootstrap process wrapper is built without the normal rules_rust + # process wrapper. On Windows nightly toolchains that expose rust-lld, the @@ -18,5 +18,6 @@ + ) + + if not ld or toolchain.linker_preference == "rust" or use_bootstrap_rust_linker: - ld = toolchain.linker.path - ld_is_direct_driver = toolchain.linker_type == "direct" + ld = toolchain.linker.path + ld_is_direct_driver = toolchain.linker_type == "direct" +