mirror of https://github.com/aminya/setup-cpp
fix: use the same path for llvm, clangformat, clangtidy
This commit is contained in:
parent
3e61953947
commit
5ac28d17ae
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -161,8 +161,11 @@ export async function main(args: string[]): Promise<number> {
|
|||
// get the setup function
|
||||
const setupFunction = setups[tool]
|
||||
|
||||
// the tool installation directory (for the functions that ue it)
|
||||
const setupDir = join(setupCppDir, ["llvm", "clangformat", "clangtidy"].includes(tool) ? "llvm" : tool)
|
||||
|
||||
// eslint-disable-next-line no-await-in-loop
|
||||
installationInfo = await setupFunction(getVersion(tool, version), join(setupCppDir, tool), arch)
|
||||
installationInfo = await setupFunction(getVersion(tool, version), setupDir, arch)
|
||||
}
|
||||
// preparing a report string
|
||||
successMessages.push(getSuccessMessage(tool, installationInfo))
|
||||
|
|
Loading…
Reference in New Issue