fix: install LLVM dependencies after LLVM

This commit is contained in:
Amin Yahyaabadi 2024-08-12 03:21:33 -07:00
parent a65482651a
commit 315189b36f
No known key found for this signature in database
GPG Key ID: F52AF77F636088F0
7 changed files with 11 additions and 9 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -23,13 +23,15 @@ export async function setupLLVM(version: string, setupDir: string, arch: string)
}
async function setupLLVMWithoutActivation_raw(version: string, setupDir: string, arch: string) {
// install LLVM and its dependencies in parallel
const [installationInfo, _1, _2] = await Promise.all([
// install LLVM
const [installationInfo, _1] = await Promise.all([
setupLLVMOnly(version, setupDir, arch),
setupLLVMDeps(arch),
addLLVMLoggingMatcher(),
])
// install LLVM dependencies
await setupLLVMDeps(arch)
return installationInfo
}
const setupLLVMWithoutActivation = memoize(setupLLVMWithoutActivation_raw, { isPromise: true })