Only install mingw or ucrt for new Rubies

This commit is contained in:
MSP-Greg
2022-01-13 19:25:34 +01:00
committed by Benoit Daloze
parent 480fe921a2
commit ffd46bd1d2
+4 -1
View File
@@ -60,11 +60,14 @@ export async function install(platform, engine, version) {
const winMSYS2Type = common.setupPath([`${rubyPrefix}\\bin`, ...toolchainPaths])
// install msys2 tools for all versions, only install mingw or ucrt for Rubies >= 2.4
if (!['windows-2019', 'windows-2016'].includes(virtualEnv)) {
await installMSY2Tools()
}
if (( winMSYS2Type === 'ucrt64') || !['windows-2019', 'windows-2016'].includes(virtualEnv)) {
if ((( winMSYS2Type === 'ucrt64') || !['windows-2019', 'windows-2016'].includes(virtualEnv)) &&
(common.floatVersion(version) >= 2.4)) {
await installGCCTools(winMSYS2Type)
}