about summary refs log tree commit diff
path: root/src/bootstrap/bootstrap.py
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2023-12-05 19:23:33 +0100
committerRalf Jung <post@ralfj.de>2023-12-05 19:25:07 +0100
commit68ea62100bfa8859c07682e3409685e41bd9014f (patch)
tree7a5cd23469a7c85f57eb2c443e9e33a755840bb7 /src/bootstrap/bootstrap.py
parent154f645d76a9752bd7ea58d7382b2e90e83557fb (diff)
downloadrust-68ea62100bfa8859c07682e3409685e41bd9014f.tar.gz
rust-68ea62100bfa8859c07682e3409685e41bd9014f.zip
add comment about keeping flags in sync between bootstrap.py and bootstrap.rs
Diffstat (limited to 'src/bootstrap/bootstrap.py')
-rw-r--r--src/bootstrap/bootstrap.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py
index 4691fb3ad6f..2328dd822af 100644
--- a/src/bootstrap/bootstrap.py
+++ b/src/bootstrap/bootstrap.py
@@ -946,6 +946,8 @@ class RustBuild(object):
         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"