Skip to content

Commit ffd46bd

Browse files
MSP-Gregeregon
authored andcommitted
Only install mingw or ucrt for new Rubies
1 parent 480fe92 commit ffd46bd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

windows.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,14 @@ export async function install(platform, engine, version) {
6060

6161
const winMSYS2Type = common.setupPath([`${rubyPrefix}\\bin`, ...toolchainPaths])
6262

63+
// install msys2 tools for all versions, only install mingw or ucrt for Rubies >= 2.4
64+
6365
if (!['windows-2019', 'windows-2016'].includes(virtualEnv)) {
6466
await installMSY2Tools()
6567
}
6668

67-
if (( winMSYS2Type === 'ucrt64') || !['windows-2019', 'windows-2016'].includes(virtualEnv)) {
69+
if ((( winMSYS2Type === 'ucrt64') || !['windows-2019', 'windows-2016'].includes(virtualEnv)) &&
70+
(common.floatVersion(version) >= 2.4)) {
6871
await installGCCTools(winMSYS2Type)
6972
}
7073

0 commit comments

Comments
 (0)