Skip to content
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

Support finding Windows tools on non-Windows host #907

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

cavivie
Copy link
Contributor

@cavivie cavivie commented Nov 28, 2023

This PR contains a simple implementation of building targets on non-Windows platform. it supports manually set environment variables to find Windows msvc tools.

By setting VCINSTALLDIR environment variable, we can search msvc tools simply, and resolve related issues:

Currently, this PR can be regarded as a draft implementation, and the implementation details may still be discussed.

@cavivie cavivie marked this pull request as draft November 28, 2023 08:34
@cavivie cavivie marked this pull request as ready for review November 28, 2023 08:54
@cavivie cavivie changed the title Support finding windows tools on non-Windows host Support finding Windows tools on non-Windows host Nov 28, 2023
@cavivie
Copy link
Contributor Author

cavivie commented Nov 28, 2023

@ChrisDenton It would be great if you could give me some advice.

src/lib.rs Outdated Show resolved Hide resolved
src/windows_registry.rs Outdated Show resolved Hide resolved
src/windows_registry.rs Outdated Show resolved Hide resolved
cavivie

This comment was marked as duplicate.

cavivie

This comment was marked as duplicate.

cavivie

This comment was marked as resolved.

cavivie

This comment was marked as duplicate.

@NobodyXu
Copy link
Collaborator

cc @thomcc I will need your help on how to move forward with this PR

@NobodyXu NobodyXu requested a review from thomcc January 30, 2024 00:28
@maaft
Copy link

maaft commented Feb 1, 2024

subbing. very interested to be able to use cross for msvc compilation.

Copy link
Collaborator

@NobodyXu NobodyXu left a comment

Choose a reason for hiding this comment

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

Going through this again, I think it's ok to merge in this PR.
At the very least it shouldn't regress anything, then it will be perfectly fine for it to merge in.

If we find any issue with it lately, we could just fix it and cut a new release.

@NobodyXu
Copy link
Collaborator

cc @cavivie Can you rebase this please?

I'm willing to merge it in.

@cavivie
Copy link
Contributor Author

cavivie commented Feb 25, 2024

cc @cavivie Can you rebase this please?

I'm willing to merge it in.

Okay, I will do it as soon as possible.

@cavivie cavivie marked this pull request as ready for review February 25, 2024 08:12
src/windows/find_tools.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@NobodyXu NobodyXu left a comment

Choose a reason for hiding this comment

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

Thank you!

@NobodyXu NobodyXu merged commit 2f587f5 into rust-lang:main Feb 28, 2024
21 checks passed
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.

None yet

3 participants