mirror of https://github.com/aminya/setup-cpp
fix: install the latest gcc for using llvm
This commit is contained in:
parent
9770308530
commit
2d754debe8
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -13,6 +13,8 @@ import { setupAptPack } from "../utils/setup/setupAptPack"
|
|||
import { warning } from "../utils/io/io"
|
||||
import { existsSync } from "fs"
|
||||
import { isGitHubCI } from "../utils/env/isci"
|
||||
import { setupGcc } from "../gcc/gcc"
|
||||
import { getVersion } from "../default_versions"
|
||||
|
||||
//================================================
|
||||
// Version
|
||||
|
@ -255,7 +257,7 @@ async function _setupLLVM(version: string, setupDir: string, arch: string) {
|
|||
if (!didInit) {
|
||||
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?
|
||||
await setupGcc(getVersion("gcc", undefined), "", arch) // using llvm requires ld, an up to date libstdc++, etc. So, install gcc first
|
||||
await setupAptPack("libtinfo-dev")
|
||||
}
|
||||
// eslint-disable-next-line require-atomic-updates
|
||||
|
|
Loading…
Reference in New Issue