Skip to content

Commit e0ba227

Browse files
committed
add comment about keeping flags in sync between bootstrap.py and bootstrap.rs
1 parent 154f645 commit e0ba227

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bootstrap/bootstrap.py

+2
Original file line numberDiff line numberDiff line change
@@ -946,6 +946,8 @@ def build_bootstrap_cmd(self, env):
946946
target_linker = self.get_toml("linker", build_section)
947947
if target_linker is not None:
948948
env["RUSTFLAGS"] += " -C linker=" + target_linker
949+
# When changing this list, also update the corresponding logic in `Builder::cargo`
950+
# in `src/bootstrap/src/core/builder.rs`.
949951
env["RUSTFLAGS"] += " -Wrust_2018_idioms -Wunused_lifetimes"
950952
if self.warnings == "default":
951953
deny_warnings = self.get_toml("deny-warnings", "rust") != "false"

0 commit comments

Comments
 (0)