Update rustc building instructions & format all the rustflags consistently#1324
Merged
davidlattimore merged 4 commits intodavidlattimore:mainfrom Nov 22, 2025
Merged
Conversation
Owner
davidlattimore
left a comment
There was a problem hiding this comment.
Thanks for all your work getting rustflags into rust's bootstrap.toml. This is awesome!
davidlattimore
approved these changes
Nov 22, 2025
BENCHMARKING.md
Outdated
| ``` | ||
|
|
||
| For more information about building rustc see [building instructions on the rustc-dev-guide](https://rustc-dev-guide.rust-lang.org/building/how-to-build-and-run.html). | ||
| You should now have a few subdirectories under `$HOME/tmp/rustc-link`. You can identify which one is |
Owner
There was a problem hiding this comment.
The command above now uses /tmp/rustc-link. I pushed a commit to your branch to fix it here and a few lines below.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I've updated instructions on building rustc with wild linker because rust-lang/rust#148795 got merged.
This makes you can now put rustflags in the
bootstrap.tomljust like in.cargo/config.toml. This should means building rustc with wild should finally be both easy & reliable.This is a follow up to #1283 which turned out to not work for everyone as on some systems took
clangtooklldnot from PATH but from other some specific path.Additionally it was bothering that every instance of rustflags looks different so I made them all consistent.