Skip to content

Commit 134a5ae

Browse files
committed
Add a linker argument back to boostrap.py
In rust-lang#101783 I accidentally removed a load-bearing linker argument. This PR adds it back in.
1 parent ba64ba8 commit 134a5ae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bootstrap/bootstrap.py

+3
Original file line numberDiff line numberDiff line change
@@ -753,6 +753,9 @@ def build_bootstrap(self, color):
753753
target_features += ["-crt-static"]
754754
if target_features:
755755
env["RUSTFLAGS"] += " -C target-feature=" + (",".join(target_features))
756+
target_linker = self.get_toml("linker", build_section)
757+
if target_linker is not None:
758+
env["RUSTFLAGS"] += " -C linker=" + target_linker
756759
env["RUSTFLAGS"] += " -Wrust_2018_idioms -Wunused_lifetimes"
757760
env["RUSTFLAGS"] += " -Wsemicolon_in_expressions_from_macros"
758761
if self.get_toml("deny-warnings", "rust") != "false":

0 commit comments

Comments
 (0)