Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions bootstrap.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -826,9 +826,18 @@
# in the sysroot. It is required for running nvptx tests.
#rust.llvm-bitcode-linker = false

# Whether to deny warnings in crates. Set to `false` to avoid
# error: warnings are denied by `build.warnings` configuration
#rust.deny-warnings = true
# Whether to deny warnings in crates.
#
# Set to `true` to fail the build if there are warnings in crates,
# to not accidentally miss warnings in long build output.
#
# Set to `false` to avoid "error: warnings are denied by `build.warnings` configuration"
# and have easier time iterating on your changes.
#
# This is set to `true` by default for the `dist` profile and to `false` otherwise.
#
# Note that CI denies warnings.
#rust.deny-warnings = false

# Print backtrace on internal compiler errors during bootstrap
#rust.backtrace-on-ice = false
Expand Down
2 changes: 2 additions & 0 deletions src/bootstrap/defaults/bootstrap.compiler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ frame-pointers = true
# e.g. check that it builds locally and check the baseline behavior of a
# compiler built from latest `main` commit.
download-rustc = false
# Don't fail compilation when there are warnings.
deny-warnings = false

[llvm]
# Having this set to true disrupts compiler development workflows for people who use `llvm.download-ci-llvm = true`
Expand Down
2 changes: 2 additions & 0 deletions src/bootstrap/defaults/bootstrap.dist.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ download-rustc = false
llvm-bitcode-linker = true
# Required to make builds reproducible.
remap-debuginfo = true
# Fail compilation when there are warnings.
deny-warnings = true

[dist]
# Use better compression when preparing tarballs.
Expand Down
2 changes: 2 additions & 0 deletions src/bootstrap/defaults/bootstrap.library.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ lto = "off"
# library development by skipping compiler builds.
# FIXME: download-rustc is currently broken: https://github.com/rust-lang/rust/issues/142505
download-rustc = false
# Don't fail compilation when there are warnings.
deny-warnings = false

[llvm]
# Will download LLVM from CI if available on your platform.
Expand Down
2 changes: 2 additions & 0 deletions src/bootstrap/defaults/bootstrap.tools.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ incremental = true
# Most commonly, tools contributors do not need to modify the compiler, so
# downloading a CI rustc is a good default for tools profile.
download-rustc = "if-unchanged"
# Don't fail compilation when there are warnings.
deny-warnings = false

[build]
# cargo and clippy tests don't pass on stage 1
Expand Down
5 changes: 5 additions & 0 deletions src/bootstrap/src/utils/change_tracker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -626,4 +626,9 @@ pub const CONFIG_CHANGE_HISTORY: &[ChangeInfo] = &[
severity: ChangeSeverity::Info,
summary: "New `--verbose-run-make-subprocess-output` flag for `x.py test` (defaults to true). Set `--verbose-run-make-subprocess-output=false` to suppress verbose subprocess output for passing run-make tests when using `--no-capture`.",
},
ChangeInfo {
change_id: 124439,
severity: ChangeSeverity::Info,
summary: "Default for `rust.deny-warnings` on `compiler`, `library` and `tools` profiles changed to `false`",
},
];
Loading