Skip to content

Update rustc building instructions & format all the rustflags consistently#1324

Merged
davidlattimore merged 4 commits intodavidlattimore:mainfrom
karolzwolak:building-rustc
Nov 22, 2025
Merged

Update rustc building instructions & format all the rustflags consistently#1324
davidlattimore merged 4 commits intodavidlattimore:mainfrom
karolzwolak:building-rustc

Conversation

@karolzwolak
Copy link
Contributor

@karolzwolak karolzwolak commented Nov 22, 2025

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.toml just 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 clang took lld not 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.

Copy link
Owner

@davidlattimore davidlattimore left a comment

Choose a reason for hiding this comment

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

Thanks for all your work getting rustflags into rust's bootstrap.toml. This is awesome!

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
Copy link
Owner

Choose a reason for hiding this comment

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

The command above now uses /tmp/rustc-link. I pushed a commit to your branch to fix it here and a few lines below.

@davidlattimore davidlattimore merged commit a7412eb into davidlattimore:main Nov 22, 2025
20 checks passed
@karolzwolak karolzwolak deleted the building-rustc branch November 23, 2025 07:28
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.

2 participants

Comments