Skip to content

Commit

Permalink
fix: fix gcc path on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Sep 16, 2021
1 parent 440e628 commit fa8836c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/gcc/gcc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit fa8836c

Please sign in to comment.