Skip to content

Commit

Permalink
Add a linker argument back to boostrap.py
Browse files Browse the repository at this point in the history
In #101783 I accidentally removed
a load-bearing linker argument.  This PR adds it back in.
  • Loading branch information
chriswailes committed Feb 3, 2023
1 parent ba64ba8 commit 134a5ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bootstrap/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,9 @@ def build_bootstrap(self, color):
target_features += ["-crt-static"]
if target_features:
env["RUSTFLAGS"] += " -C target-feature=" + (",".join(target_features))
target_linker = self.get_toml("linker", build_section)
if target_linker is not None:
env["RUSTFLAGS"] += " -C linker=" + target_linker
env["RUSTFLAGS"] += " -Wrust_2018_idioms -Wunused_lifetimes"
env["RUSTFLAGS"] += " -Wsemicolon_in_expressions_from_macros"
if self.get_toml("deny-warnings", "rust") != "false":
Expand Down

0 comments on commit 134a5ae

Please sign in to comment.