Restore rules_rust patch context indentation

This commit is contained in:
Friel
2026-04-02 07:58:13 +00:00
parent 75bd6a1f29
commit e09cc1bd9d

View File

@@ -1,8 +1,8 @@
--- 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
@@ -18,6 +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"