Skip to content

Do not compile extended tools in bootstrap benchmark #2158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 13, 2025

Conversation

Kobzol
Copy link
Contributor

@Kobzol Kobzol commented Jun 12, 2025

I really don't think that we have to compile things like llvm-bitcode-linker and wasm-component-ld in the bootstrap benchmark. Especially the compilation is performed with -j1, so compiling tens of dependencies that these crates have is quite painful.

This should speed up the bootstrap build by a couple of minutes, I think.

@Kobzol Kobzol requested a review from Mark-Simulacrum June 12, 2025 10:13
@@ -98,6 +98,9 @@ async fn record(
"build.cargo={}",
toolchain.components.cargo.to_str().unwrap()
))
// Do not compile all default tools
.arg("--set")
.arg("build.extended=false")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

....why is this on by default? It's literally extended :)

But seems fine.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rustc-perf runs configure, which creates a config file based on the dist profile. And dist uses extended = true, which I guess makes sense for it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, the goal of the bootstrap timing is really more focused on rustc devs IMO, not distros, so we might want to change that to compiler or so... though maybe this is enough in practice.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm², the dist profile doesn't download-ci-llvm, so I hope we're not building llvm on the collector.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We enable download CI LLVM a few lines before, don't worry 😅

@Kobzol Kobzol merged commit 88542ee into rust-lang:master Jun 13, 2025
11 checks passed
@Kobzol Kobzol deleted the bootstrap-disable-extended branch June 13, 2025 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants