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

Fix is_flag_supported on msvc #1336

Merged
merged 1 commit into from
Dec 31, 2024
Merged

Conversation

ChrisDenton
Copy link
Member

Fixes #1324 by skipping linking the CRT when testing for supported compiler flags on Windows. We use the _LINK_ environment variable to avoid disturbing the command line.

The more complex alternative would be to get the library paths and add them to the LIB environment variable.

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 for putting up a PR so quick!

Usually we cut a release every Friday/Sat, but if this is urgent enough I can cut a release tomorrow

@NobodyXu NobodyXu merged commit 05a529c into rust-lang:main Dec 31, 2024
27 checks passed
@github-actions github-actions bot mentioned this pull request Jan 3, 2025
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.

bug: Build::is_flag_supported /std:c++17 returns false on 1.2.1 ->1.2.5 transition (on x86_64-pc-windows-msvc)
2 participants