fix: fix cppcheck path on windows

This commit is contained in:
Amin Yahyaabadi 2021-09-16 13:48:13 -05:00
parent 1c9ab5ba6f
commit 3284f1f1f9
1 changed files with 3 additions and 2 deletions

View File

@ -8,8 +8,9 @@ export async function setupCppcheck(version: string | undefined, _setupCppDir: s
switch (process.platform) {
case "win32": {
await setupChocoPack("cppcheck", version)
addPath("C:\\Program Files\\Cppcheck")
return undefined
const binDir = "C:\\Program Files\\Cppcheck"
addPath(binDir)
return { binDir }
}
case "darwin": {
return setupBrewPack("cppcheck", version)