Add RUSTC_EMIT option to pass on --emit to crates during bootstrap#108365
Add RUSTC_EMIT option to pass on --emit to crates during bootstrap#108365Zoxc wants to merge 2 commits intorust-lang:masterfrom
Conversation
|
(rustbot has picked a reviewer for you, use r? to override) |
|
I have a few remarks:
Note for future/follow-up/now:
|
|
The I could add the ability to specify the output formats with a syntax like |
Can you test building a stage 2 compiler and using it?
Yes please!
This would be great! |
The related documentation place for this context points to |
|
I've renamed the environmental variable to The dev guide seems to be the right place to add documentation as |
albertlarsan68
left a comment
There was a problem hiding this comment.
Post a PR to the rustc dev guide, and apply my comments if you want.
src/bootstrap/bin/rustc.rs
Outdated
There was a problem hiding this comment.
As a follow-up, make this configurable to be able to output ATT syntax.
|
I've opened a PR to add documentation. |
|
It would also be great if you add an entry to the changelog for bootstrap (located in |
|
Done. |
|
☔ The latest upstream changes (presumably #109164) made this pull request unmergeable. Please resolve the merge conflicts. |
|
Why not use |
|
|
|
It seems like rustc does not respect the output dir everytime. For example, LLVM IR and ASM do still output in the "normal" target directory, for example to |
|
☔ The latest upstream changes (presumably #111402) made this pull request unmergeable. Please resolve the merge conflicts. |
|
That may be a result of the hacks we use to force compiler-builtins to build with multiple codegen units. |
|
In the meantime, you could use |
|
triage: FYI: when a PR is ready for review, send a message containing |
|
I think I'll close this for now. It doesn't interact well with multiple CGUs and LTO. It might be better to base it on |
This makes it a bit more convenient to inspect the generated code of
rustccrates. I also have an upstream patch to add demangling support tollvm-reducewhich pairs well with this to make the LLVM IR output more readable.