Skip to content

Commit

Permalink
add comment about keeping flags in sync between bootstrap.py and boot…
Browse files Browse the repository at this point in the history
…strap.rs
  • Loading branch information
RalfJung committed Dec 5, 2023
1 parent 154f645 commit 68ea621
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bootstrap/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -946,6 +946,8 @@ def build_bootstrap_cmd(self, env):
target_linker = self.get_toml("linker", build_section)
if target_linker is not None:
env["RUSTFLAGS"] += " -C linker=" + target_linker
# When changing this list, also update the corresponding list in `Builder::cargo`
# in `src/bootstrap/src/core/builder.rs`.
env["RUSTFLAGS"] += " -Wrust_2018_idioms -Wunused_lifetimes"
if self.warnings == "default":
deny_warnings = self.get_toml("deny-warnings", "rust") != "false"
Expand Down

0 comments on commit 68ea621

Please sign in to comment.