mirror of https://github.com/aminya/setup-cpp
fix: add build-essential as the dependency of llvm
This commit is contained in:
parent
0634668674
commit
36cac945b8
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -9,6 +9,7 @@ import { setupMacOSSDK } from "../macos-sdk/macos-sdk"
|
|||
import { addBinExtension } from "../utils/extension/extension"
|
||||
import { addEnv } from "../utils/env/addEnv"
|
||||
import { setOutput } from "@actions/core"
|
||||
import { setupAptPack } from "../utils/setup/setupAptPack"
|
||||
|
||||
//================================================
|
||||
// Version
|
||||
|
@ -246,6 +247,11 @@ export async function setupLLVM(
|
|||
}
|
||||
|
||||
export async function activateLLVM(directory: string, versionGiven: string) {
|
||||
if (process.platform === "linux") {
|
||||
// install llvm build dependencies
|
||||
await setupAptPack("build-essential") // TODO(question) llvm needs ld. But does it need all the build-essential?
|
||||
}
|
||||
|
||||
const version = semverCoerceIfInvalid(versionGiven)
|
||||
|
||||
const lib = path.join(directory, "lib")
|
||||
|
|
Loading…
Reference in New Issue