Skip to content

[Windows] Add support MinGW/UCRT prefix. #107879

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bruvzg
Copy link
Member

@bruvzg bruvzg commented Jun 23, 2025

Adds support for "ucrt" version of MinGW toolchain detection, and make it higher priority.

@akien-mga
Copy link
Member

What does it enable compared to the regular runtime?

@bruvzg
Copy link
Member Author

bruvzg commented Jun 23, 2025

What does it enable compared to the regular runtime?

Nothing specific, it's just a newer CRT and should be more compatible with both MSVC and MinGW libraries and be more stable in general. MSVCRT is outdated (not even C99 compliant) and MinGW rely on bunch of hack to work with it.

@Calinou
Copy link
Member

Calinou commented Jun 26, 2025

Does this also exist for x86_32, or is it 64-bit only? Also, what about ARM64?

MSVCRT is outdated (not even C99 compliant) and MinGW rely on bunch of hack to work with it.

There's some context in this video (at the linked timestamp) if anyone is curious: https://youtu.be/wxdn30G2LE8?t=437

Most notably, MSVCRT is not the same thing as the Visual C++ redistributable we have nowadays.

Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

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

Code looks good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants