add LLVM 18.1.0 and 18.1.1

Fixes #228
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
This commit is contained in:
Kefu Chai 2024-03-18 20:45:44 +08:00 committed by Amin Yahyaabadi
parent 3490656d25
commit fd34bfcefe
2 changed files with 19 additions and 13 deletions

View File

@ -75,6 +75,8 @@ export const VERSIONS: Set<string> = getVersions([
"17.0.4", "17.0.4",
"17.0.5", "17.0.5",
"17.0.6", "17.0.6",
"18.1.0",
"18.1.1",
]) ])
/** The LLVM versions that were never released for the Windows platform. */ /** The LLVM versions that were never released for the Windows platform. */
@ -113,6 +115,8 @@ const DARWIN_MISSING = new Set([
"17.0.4", "17.0.4",
"17.0.5", "17.0.5",
"17.0.6", "17.0.6",
"18.1.0",
"18.1.1",
]) ])
/** /**
@ -178,10 +182,12 @@ 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 = "17.0.6" const MAX_UBUNTU: string = "18.1.1"
//================================================ //================================================
// URL // URL

View File

@ -6,14 +6,14 @@ import { isArch } from "../utils/env/isArch"
function getLLVMDefault() { function getLLVMDefault() {
switch (process.platform) { switch (process.platform) {
case "win32": case "win32":
return "17.0.6" return "18.1.1"
case "linux": case "linux":
// used for non-ubuntu (Fedora, Arch) // used for non-ubuntu (Fedora, Arch)
return "17.0.6-ubuntu-22.04" return "18.1.1-ubuntu-22.04"
case "darwin": case "darwin":
return "15.0.3" return "15.0.3"
default: default:
return "17.0.6" return "18.1.1"
} }
} }
@ -54,23 +54,23 @@ export const DefaultLinuxVersion: Record<string, Record<number, string> | undefi
20: "7.0.0-2", 20: "7.0.0-2",
}, },
llvm: { llvm: {
22: "17.0.6-ubuntu-22.04", 22: "18.1.1-ubuntu-22.04",
20: "17.0.6-ubuntu-22.04", 20: "18.1.1-ubuntu-22.04",
18: "15.0.6-ubuntu-18.04", 18: "18.1.1-ubuntu-22.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: "17.0.2-ubuntu-22.04", 22: "18.1.1-ubuntu-22.04",
20: "17.0.2-ubuntu-22.04", 20: "18.1.1-ubuntu-22.04",
18: "15.0.6-ubuntu-18.04", 18: "18.1.1-ubuntu-22.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: "17.0.2-ubuntu-22.04", 22: "18.1.1-ubuntu-22.04",
20: "17.0.2-ubuntu-22.04", 20: "18.1.1-ubuntu-22.04",
18: "15.0.6-ubuntu-18.04", 18: "18.1.1-ubuntu-22.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",
}, },