mirror of
https://github.com/ruby/setup-ruby.git
synced 2026-09-13 14:34:21 +02:00
Only install mingw or ucrt for new Rubies
This commit is contained in:
+4
-1
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user