mirror of https://github.com/aminya/setup-cpp
fix: use ChocolateyInstall for gcc installation path on Windows
This commit is contained in:
parent
625ffbd77f
commit
b43302cf75
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -24,8 +24,8 @@ export async function setupGcc(version: string, _setupDir: string, arch: string)
|
|||
} else if (arch === "ia32" && existsSync("C:/tools/mingw32/bin")) {
|
||||
binDir = "C:/tools/mingw32/bin"
|
||||
addPath(binDir)
|
||||
} else if (existsSync("C:/ProgramData/Chocolatey/bin/g++.exe")) {
|
||||
binDir = "C:/ProgramData/Chocolatey/bin/"
|
||||
} else if (existsSync(`${process.env.ChocolateyInstall ?? "C:/ProgramData/chocolatey"}/bin/g++.exe`)) {
|
||||
binDir = `${process.env.ChocolateyInstall ?? "C:/ProgramData/chocolatey"}/bin`
|
||||
}
|
||||
break
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue