-
Notifications
You must be signed in to change notification settings - Fork 13.7k
compiler: Add Windows resources to rustc-main and rustc_driver #146018
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
base: master
Are you sure you want to change the base?
Conversation
These commits modify the If this was unintentional then you should revert the changes before this PR is merged. Some changes occurred in compiler/rustc_codegen_ssa |
Why is the rustc version included in the product name? At most including the release channel would make sense to me (given that nightly genuinely behaves differently from stable by allowing unstable features), but the exaxt version is duplicated with the product version field. |
This comment has been minimized.
This comment has been minimized.
I don't have a good justification for the first iteration of this PR. Happy to update the names/descriptions to whatever makes the most sense |
Adds Windows resources with the rust version information to rustc-main.exe and rustc_driver.dll
92170d4
to
6886e5b
Compare
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
set product description to "Rust Compiler" or "Rust Compiler (channel)" for non-stable channels
4cdb255
to
a21db62
Compare
Updated the Product Description to be just "Rust Compiler" or "Rust Compiler (channel)" for non-stable |
This comment has been minimized.
This comment has been minimized.
This needs someone who actually have some clues about windows resources to review... I'll ask about a reviewer |
This comment has been minimized.
This comment has been minimized.
I'm not familiar with Windows resources. But can you say more on the motivation for this change? EDIT: okay I found #t-compiler/windows > version resources on rustc.exe and rustc_driver.dll, but it's still not super obvious to me the motivation for the change. |
In many ways this is a cosmetic change: as you can see in the screenshot in the comment above, Windows shows the version info in the file explorer when you right click on the .exe or .dll and look at the details However this info is also used by some other tools on Windows such as debuggers or crash reporters when collecting diagnostic information. For our internal builds of Rust at Microsoft having version info available would allow us to collect better automated crash reports from our users. |
Ok thanks for the clarification, that makes sense. I'll ask internally for another reviewer who has at least slightly more clues about this than I do. |
Adds Windows resources with the rust version information to rustc-main.exe and rustc_driver.dll
Invokes
rc.exe
directly, rather than using one of the crates from the ecosystem to avoid adding dependencies.A new internal
rustc_windows_rc
crate has the common build script machinery for locatingrc.exe
and constructing the resource script