forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
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 rust-lang#83370 - jyn514:setup-tools, r=Mark-Simulacrum
Add `x.py setup tools` which enables `download-rustc` by default Helps with rust-lang#81930. I know I said in that issue that I should fix that rebasing rebuilds bootstrap, but the compile time improvement is so good I think it's ok to leave that fix for later (I still plan to work on it). I think all the outright bugs have been fixed :) This builds on rust-lang#83368 so I can set the option to `if-unchanged`. r? ``@Mark-Simulacrum``
- Loading branch information
Showing
3 changed files
with
34 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# These defaults are meant for contributors to tools which build on the | ||
# compiler, but do not modify it directly. | ||
[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 | ||
# Download rustc from CI instead of building it from source. | ||
# This cuts compile times by almost 60x, but means you can't modify the compiler. | ||
download-rustc = "if-unchanged" | ||
|
||
[llvm] | ||
# Will download LLVM from CI if available on your platform. | ||
download-ci-llvm = "if-available" |
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