fix: fix gcc path on windows

This commit is contained in:
Amin Yahyaabadi 2021-09-16 13:51:23 -05:00
parent 7d6d5df459
commit c77dfe5251
1 changed files with 7 additions and 2 deletions

View File

@ -11,10 +11,15 @@ export async function setupGcc(version: string, _setupCppDir: string, arch: stri
await setupChocoPack("gcc-arm-embedded", version)
}
await setupChocoPack("mingw", version)
let binDir: string | undefined
if (arch === "x64") {
addPath("C:\\tools\\mingw64\\bin")
binDir = "C:\\tools\\mingw64\\bin"
addPath(binDir)
return { binDir }
} else if (arch === "ia32") {
addPath("C:\\tools\\mingw32\\bin")
binDir = "C:\\tools\\mingw32\\bin"
addPath(binDir)
return { binDir }
}
return undefined
}