mirror of https://github.com/aminya/setup-cpp
feat: add activateWinCppcheck
This commit is contained in:
parent
e5d7c702c7
commit
3640522fa1
|
@ -8,8 +8,7 @@ export async function setupCppcheck(version: string | undefined, _setupCppDir: s
|
|||
switch (process.platform) {
|
||||
case "win32": {
|
||||
await setupChocoPack("cppcheck", version)
|
||||
const binDir = "C:/Program Files/Cppcheck"
|
||||
addPath(binDir)
|
||||
const binDir = activateWinCppcheck()
|
||||
return { binDir }
|
||||
}
|
||||
case "darwin": {
|
||||
|
@ -23,3 +22,9 @@ export async function setupCppcheck(version: string | undefined, _setupCppDir: s
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
function activateWinCppcheck() {
|
||||
const binDir = "C:/Program Files/Cppcheck"
|
||||
addPath(binDir)
|
||||
return binDir
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue