Skip to content

Conversation

@MSP-Greg
Copy link
Collaborator

Fix for GCC 15 being preinstalled on win2019

@eregon
Copy link
Member

eregon commented May 1, 2025

Link: #760 (comment)

// windows 2016 and 2019 need ucrt64 installed, 2022 and future images need
// ucrt64 or mingw64 installed, depending on Ruby version
if (((msys2Type === 'ucrt64') || !hasMSYS2PreInstalled) && common.floatVersion(version) >= 2.4) {
if ((msys2Type === 'ucrt64') || (common.floatVersion(version) >= 2.4)) {
Copy link
Member

Choose a reason for hiding this comment

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

So this installs GCC even if MSYS2 is pre-installed, to avoid the too new gcc from the pre-installed MSYS2, right?

Copy link
Member

@eregon eregon left a comment

Choose a reason for hiding this comment

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

Thanks!

@eregon eregon merged commit eaecf78 into ruby:master May 1, 2025
208 checks passed
@MSP-Greg MSP-Greg deleted the 00-win-2019-gcc branch May 4, 2025 16:20
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.

2 participants