mirror of https://github.com/aminya/setup-cpp
Merge pull request #62 from aminya/llvm-path [skip ci]
This commit is contained in:
commit
25cb8633f1
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
|
// get the setup function
|
||||||
const setupFunction = setups[tool]
|
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
|
// 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
|
// preparing a report string
|
||||||
successMessages.push(getSuccessMessage(tool, installationInfo))
|
successMessages.push(getSuccessMessage(tool, installationInfo))
|
||||||
|
|
Loading…
Reference in New Issue