fix: install the latest gcc for using llvm

This commit is contained in:
Amin Yahyaabadi 2022-02-14 23:46:00 -08:00
parent 9770308530
commit 2d754debe8
3 changed files with 5 additions and 3 deletions

2
dist/setup_cpp.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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