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

windows: always use RtlGenRandom on pre-1.78 Rust versions #610

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

newpavlov
Copy link
Member

@newpavlov newpavlov commented Feb 26, 2025

This PR adds detection of Rust compiler version in the build script while compiling the crate for Windows targets.

If the version is smaller than 1.78, then we switch to the windows7 backend for all Windows targets. This is necessary because on those older versions we can not disambiguate between win7 and win10 based on target triplet.

Close #608

@newpavlov newpavlov requested a review from josephlr February 26, 2025 13:44
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.

Windows 7 support on Rust 1.77 and lower
1 participant