Skip to content

Conversation

@Kobzol
Copy link
Member

@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
))
// 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
Member 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
Member 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