diff options
| author | Mark Simulacrum <mark.simulacrum@gmail.com> | 2018-04-01 09:35:53 -0600 |
|---|---|---|
| committer | Mark Simulacrum <mark.simulacrum@gmail.com> | 2018-04-08 16:59:14 -0600 |
| commit | c115cc655c8bb3077ff349e4ddd704a2239438a6 (patch) | |
| tree | 929e932baf457750f0f7296ea33f1457e6e2ce9b /src/bootstrap/bin | |
| parent | b7da1aaff62c1394d56830dc975d24d99c7a4fd8 (diff) | |
| download | rust-c115cc655c8bb3077ff349e4ddd704a2239438a6.tar.gz rust-c115cc655c8bb3077ff349e4ddd704a2239438a6.zip | |
Move deny(warnings) into rustbuild
This permits easier iteration without having to worry about warnings being denied. Fixes #49517
Diffstat (limited to 'src/bootstrap/bin')
| -rw-r--r-- | src/bootstrap/bin/rustc.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bootstrap/bin/rustc.rs b/src/bootstrap/bin/rustc.rs index 6701f58ba8e..3dd9b684059 100644 --- a/src/bootstrap/bin/rustc.rs +++ b/src/bootstrap/bin/rustc.rs @@ -279,6 +279,10 @@ fn main() { cmd.arg("--color=always"); } + if env::var_os("RUSTC_DENY_WARNINGS").is_some() { + cmd.arg("-Dwarnings"); + } + if verbose > 1 { eprintln!("rustc command: {:?}", cmd); eprintln!("sysroot: {:?}", sysroot); |
