fix: fix linux binaries for llvm

This commit is contained in:
Amin Yahyaabadi 2024-03-21 11:37:25 -07:00
parent fd34bfcefe
commit c8867dae41
8 changed files with 32 additions and 30 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

@ -77,6 +77,7 @@ export const VERSIONS: Set<string> = getVersions([
"17.0.6", "17.0.6",
"18.1.0", "18.1.0",
"18.1.1", "18.1.1",
"18.1.2",
]) ])
/** The LLVM versions that were never released for the Windows platform. */ /** The LLVM versions that were never released for the Windows platform. */
@ -117,6 +118,7 @@ const DARWIN_MISSING = new Set([
"17.0.6", "17.0.6",
"18.1.0", "18.1.0",
"18.1.1", "18.1.1",
"18.1.2",
]) ])
/** /**
@ -182,12 +184,10 @@ const UBUNTU_SUFFIX_MAP: { [key: string]: string } = {
"17.0.4": "-ubuntu-22.04", "17.0.4": "-ubuntu-22.04",
"17.0.5": "-ubuntu-22.04", "17.0.5": "-ubuntu-22.04",
"17.0.6": "-ubuntu-22.04", "17.0.6": "-ubuntu-22.04",
"18.1.0": "-ubuntu-22.04",
"18.1.1": "-ubuntu-22.04",
} }
/** The latest supported LLVM version for the Linux (Ubuntu) platform. */ /** The latest supported LLVM version for the Linux (Ubuntu) platform. */
const MAX_UBUNTU: string = "18.1.1" const MAX_UBUNTU: string = "17.0.6"
//================================================ //================================================
// URL // URL

View File

@ -6,14 +6,15 @@ import { isArch } from "../utils/env/isArch"
function getLLVMDefault() { function getLLVMDefault() {
switch (process.platform) { switch (process.platform) {
case "win32": case "win32":
return "18.1.1" return "18.1.2"
case "linux": case "linux":
// used for non-ubuntu (Fedora, Arch) // used for non-ubuntu (Fedora, Arch)
return "18.1.1-ubuntu-22.04" // the suffixes relate to the suffix in the llvm releases
return "17.0.6-ubuntu-22.04"
case "darwin": case "darwin":
return "15.0.3" return "15.0.3"
default: default:
return "18.1.1" return "18.1.2"
} }
} }
@ -53,24 +54,25 @@ export const DefaultLinuxVersion: Record<string, Record<number, string> | undefi
22: "8.0.0-1", 22: "8.0.0-1",
20: "7.0.0-2", 20: "7.0.0-2",
}, },
// the suffixes relate to the suffix in the llvm releases
llvm: { llvm: {
22: "18.1.1-ubuntu-22.04", 22: "18.1.2",
20: "18.1.1-ubuntu-22.04", 20: "18.1.2",
18: "18.1.1-ubuntu-22.04", 18: "15.0.6-ubuntu-18.04",
16: "15.0.6-ubuntu-18.04", 16: "15.0.6-ubuntu-18.04",
14: "13.0.0-ubuntu-16.04", 14: "13.0.0-ubuntu-16.04",
}, },
clangtidy: { clangtidy: {
22: "18.1.1-ubuntu-22.04", 22: "18.1.2",
20: "18.1.1-ubuntu-22.04", 20: "18.1.2",
18: "18.1.1-ubuntu-22.04", 18: "15.0.6-ubuntu-18.04",
16: "15.0.6-ubuntu-18.04", 16: "15.0.6-ubuntu-18.04",
14: "13.0.0-ubuntu-16.04", 14: "13.0.0-ubuntu-16.04",
}, },
clangformat: { clangformat: {
22: "18.1.1-ubuntu-22.04", 22: "18.1.2",
20: "18.1.1-ubuntu-22.04", 20: "18.1.2",
18: "18.1.1-ubuntu-22.04", 18: "15.0.6-ubuntu-18.04",
16: "15.0.6-ubuntu-18.04", 16: "15.0.6-ubuntu-18.04",
14: "13.0.0-ubuntu-16.04", 14: "13.0.0-ubuntu-16.04",
}, },