-
Notifications
You must be signed in to change notification settings - Fork 549
[win] Search the Windows SDK for tools as well #1553
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
Conversation
find-msvc-tools/src/find_tools.rs
Outdated
| .next() | ||
| .or_else(|| Some((sdk_info.find_tool(tool)?, None))) | ||
| .map(|(tool_path, host)| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| .next() | |
| .or_else(|| Some((sdk_info.find_tool(tool)?, None))) | |
| .map(|(tool_path, host)| { | |
| .chain(iter::once(|| Some((sdk_info.find_tool(tool)?, None)))) | |
| .find_map(|(tool_path, host)| { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clippy prefers map + next, so following that recommendation.
05ff2ab to
40cfad2
Compare
40cfad2 to
7f635ab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
|
If you create a release for |
|
Unfortunately our release pipeline would create release for cc and find-msvc-tools It is scheduled to run on this Friday, so if you want it befre Friday, I can cut an early release of find-msvc-tools and cc for you |
|
Friday is fine: I'm in no rush |
|
@dpaoliello new release is cut! |
The Rust Compiler needs to find
rc.exefrom the Windows SDK, which it does by finding the linker, then searching through thePATHenv var to see ifrc.exeexists anywhere there:https://github.com/rust-lang/rust/blob/364da5d88d772fa40fb20353443595385443ac25/compiler/rustc_windows_rc/src/lib.rs#L141-L158
Instead, we can have
find-msvc-toolssearch the Windows SDK paths for tools if that tool is not found in the VC path.