Skip to content

Commit 95256c5

Browse files
committed
add LLVM 18.1.0 and 18.1.1
Fixes #228 Signed-off-by: Kefu Chai <[email protected]>
1 parent 2908244 commit 95256c5

File tree

2 files changed

+19
-13
lines changed

2 files changed

+19
-13
lines changed

src/llvm/llvm_url.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ export const VERSIONS: Set<string> = getVersions([
7575
"17.0.4",
7676
"17.0.5",
7777
"17.0.6",
78+
"18.1.0",
79+
"18.1.1",
7880
])
7981

8082
/** The LLVM versions that were never released for the Windows platform. */
@@ -113,6 +115,8 @@ const DARWIN_MISSING = new Set([
113115
"17.0.4",
114116
"17.0.5",
115117
"17.0.6",
118+
"18.1.0",
119+
"18.1.1",
116120
])
117121

118122
/**
@@ -178,10 +182,12 @@ const UBUNTU_SUFFIX_MAP: { [key: string]: string } = {
178182
"17.0.4": "-ubuntu-22.04",
179183
"17.0.5": "-ubuntu-22.04",
180184
"17.0.6": "-ubuntu-22.04",
185+
"18.1.0": "-ubuntu-22.04",
186+
"18.1.1": "-ubuntu-22.04",
181187
}
182188

183189
/** The latest supported LLVM version for the Linux (Ubuntu) platform. */
184-
const MAX_UBUNTU: string = "17.0.6"
190+
const MAX_UBUNTU: string = "18.1.1"
185191

186192
//================================================
187193
// URL

src/versions/default_versions.ts

+12-12
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ import { isArch } from "../utils/env/isArch"
66
function getLLVMDefault() {
77
switch (process.platform) {
88
case "win32":
9-
return "17.0.6"
9+
return "18.1.1"
1010
case "linux":
1111
// used for non-ubuntu (Fedora, Arch)
12-
return "17.0.6-ubuntu-22.04"
12+
return "18.1.1-ubuntu-22.04"
1313
case "darwin":
1414
return "15.0.3"
1515
default:
16-
return "17.0.6"
16+
return "18.1.1"
1717
}
1818
}
1919

@@ -54,23 +54,23 @@ export const DefaultLinuxVersion: Record<string, Record<number, string> | undefi
5454
20: "7.0.0-2",
5555
},
5656
llvm: {
57-
22: "17.0.6-ubuntu-22.04",
58-
20: "17.0.6-ubuntu-22.04",
59-
18: "15.0.6-ubuntu-18.04",
57+
22: "18.1.1-ubuntu-22.04",
58+
20: "18.1.1-ubuntu-22.04",
59+
18: "18.1.1-ubuntu-22.04",
6060
16: "15.0.6-ubuntu-18.04",
6161
14: "13.0.0-ubuntu-16.04",
6262
},
6363
clangtidy: {
64-
22: "17.0.2-ubuntu-22.04",
65-
20: "17.0.2-ubuntu-22.04",
66-
18: "15.0.6-ubuntu-18.04",
64+
22: "18.1.1-ubuntu-22.04",
65+
20: "18.1.1-ubuntu-20.04",
66+
18: "18.1.1-ubuntu-18.04",
6767
16: "15.0.6-ubuntu-18.04",
6868
14: "13.0.0-ubuntu-16.04",
6969
},
7070
clangformat: {
71-
22: "17.0.2-ubuntu-22.04",
72-
20: "17.0.2-ubuntu-22.04",
73-
18: "15.0.6-ubuntu-18.04",
71+
22: "18.1.1-ubuntu-22.04",
72+
20: "18.1.1-ubuntu-20.04",
73+
18: "18.1.1-ubuntu-18.04",
7474
16: "15.0.6-ubuntu-18.04",
7575
14: "13.0.0-ubuntu-16.04",
7676
},

0 commit comments

Comments
 (0)