Skip to content

Commit 4145189

Browse files
committed
Add a default filter for library/std if there are no filters
- Add an opt-in way to build all tools with `x.py build src/tools` - Add an entry in the changelog - Bump the major version
1 parent 7820135 commit 4145189

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

src/bootstrap/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
88

99
None.
1010

11+
## [Version 3] - 2020-10-03
12+
13+
- `x.py build` no longer builds tools by default. If you want all tools, use `build src/tools`. If you want only the default tools from before, specify them one by one: `x.py build src/tools/{rustdoc,cargo,...}`. [#77489](https://github.com/rust-lang/rust/pull/77489)
14+
1115
## [Version 2] - 2020-09-25
1216

1317
- `host` now defaults to the value of `build` in all cases

src/bootstrap/bin/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ fn main() {
4040
}
4141

4242
fn check_version(config: &Config) -> Option<String> {
43-
const VERSION: usize = 2;
43+
const VERSION: usize = 3;
4444

4545
let mut msg = String::new();
4646

src/bootstrap/flags.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,12 @@ Arguments:
483483
}
484484

485485
let cmd = match subcommand.as_str() {
486-
"build" | "b" => Subcommand::Build { paths },
486+
"build" | "b" => {
487+
if paths.is_empty() {
488+
paths.push(PathBuf::from("library/std"));
489+
}
490+
Subcommand::Build { paths }
491+
}
487492
"check" | "c" => Subcommand::Check { paths },
488493
"clippy" => Subcommand::Clippy { paths },
489494
"fix" => Subcommand::Fix { paths },

src/bootstrap/tool.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ macro_rules! bootstrap_tool {
311311
type Output = PathBuf;
312312

313313
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
314-
run.path($path)
314+
run.path($path).path("src/tools")
315315
}
316316

317317
fn make_run(run: RunConfig<'_>) {

0 commit comments

Comments
 (0)