-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #76628 - jyn514:default-config-files, r=Mark-Simulacrum
Add sample defaults for config.toml - Allow including defaults in `src/bootstrap/defaults` using `profile = "..."`. - Add default config files, with a README noting they're experimental and asking you to open an issue if you run into trouble. The config files have comments explaining why the defaults are set. - Combine config files using the `merge` dependency. This introduces a new dependency on `merge` that hasn't yet been vetted. I want to improve the output when `include = "x"` isn't found: ``` thread 'main' panicked at 'fs::read_to_string(&file) failed with No such file or directory (os error 2) ("configuration file did not exist")', src/bootstrap/config.rs:522:28 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace failed to run: /home/joshua/rustc/build/bootstrap/debug/bootstrap test tidy Build completed unsuccessfully in 0:00:00 ``` However that seems like it could be fixed in a follow-up. Closes #76619
- Loading branch information
Showing
9 changed files
with
136 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# About bootstrap defaults | ||
|
||
These defaults are intended to be a good starting point for working with x.py, | ||
with the understanding that no one set of defaults make sense for everyone. | ||
|
||
They are still experimental, and we'd appreciate your help improving them! | ||
If you use a setting that's not in these defaults that you think others would benefit from, please [file an issue] or make a PR with the changes. | ||
Similarly, if one of these defaults doesn't match what you use personally, | ||
please open an issue to get it changed. | ||
|
||
[file an issue]: https://github.com/rust-lang/rust/issues/new/choose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# These defaults are meant for contributors to the compiler who modify codegen or LLVM | ||
[llvm] | ||
# This enables debug-assertions in LLVM, | ||
# catching logic errors in codegen much earlier in the process. | ||
assertions = true | ||
|
||
[rust] | ||
# This enables `RUSTC_LOG=debug`, avoiding confusing situations | ||
# where adding `debug!()` appears to do nothing. | ||
# However, it makes running the compiler slightly slower. | ||
debug-logging = true | ||
# This greatly increases the speed of rebuilds, especially when there are only minor changes. However, it makes the initial build slightly slower. | ||
incremental = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# These defaults are meant for contributors to the compiler who do not modify codegen or LLVM | ||
[rust] | ||
# This enables `RUSTC_LOG=debug`, avoiding confusing situations | ||
# where adding `debug!()` appears to do nothing. | ||
# However, it makes running the compiler slightly slower. | ||
debug-logging = true | ||
# This greatly increases the speed of rebuilds, especially when there are only minor changes. However, it makes the initial build slightly slower. | ||
incremental = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# These defaults are meant for contributors to the standard library and documentation. | ||
[build] | ||
# When building the standard library, you almost never want to build the compiler itself. | ||
build-stage = 0 | ||
test-stage = 0 | ||
bench-stage = 0 | ||
|
||
[rust] | ||
# This greatly increases the speed of rebuilds, especially when there are only minor changes. However, it makes the initial build slightly slower. | ||
incremental = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# These defaults are meant for users and distro maintainers building from source, without intending to make multiple changes. | ||
[build] | ||
# When compiling from source, you almost always want a full stage 2 build, | ||
# which has all the latest optimizations from nightly. | ||
build-stage = 2 | ||
test-stage = 2 | ||
doc-stage = 2 | ||
# When compiling from source, you usually want all tools. | ||
extended = true |