Skip to content

Handle win2019 gcc issue #761

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

Merged
merged 1 commit into from
May 1, 2025
Merged

Handle win2019 gcc issue #761

merged 1 commit into from
May 1, 2025

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)

@@ -89,7 +89,7 @@ export async function install(platform, engine, version) {

// 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
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