mirror of https://github.com/aminya/setup-cpp
Merge pull request #209 from iainchesworth/feature/add-support-for-llvm-17
Feature/add support for llvm 17
This commit is contained in:
commit
c3c5a8178f
|
@ -69,6 +69,9 @@ export const VERSIONS: Set<string> = getVersions([
|
||||||
"16.0.4",
|
"16.0.4",
|
||||||
"16.0.5",
|
"16.0.5",
|
||||||
"16.0.6",
|
"16.0.6",
|
||||||
|
"17.0.1",
|
||||||
|
"17.0.2",
|
||||||
|
"17.0.3",
|
||||||
])
|
])
|
||||||
|
|
||||||
/** The LLVM versions that were never released for the Windows platform. */
|
/** The LLVM versions that were never released for the Windows platform. */
|
||||||
|
@ -101,6 +104,9 @@ const DARWIN_MISSING = new Set([
|
||||||
"16.0.4",
|
"16.0.4",
|
||||||
"16.0.5",
|
"16.0.5",
|
||||||
"16.0.6",
|
"16.0.6",
|
||||||
|
"17.0.1",
|
||||||
|
"17.0.2",
|
||||||
|
"17.0.3",
|
||||||
])
|
])
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -162,10 +168,11 @@ const UBUNTU_SUFFIX_MAP: { [key: string]: string } = {
|
||||||
"16.0.2": "-ubuntu-22.04",
|
"16.0.2": "-ubuntu-22.04",
|
||||||
"16.0.3": "-ubuntu-22.04",
|
"16.0.3": "-ubuntu-22.04",
|
||||||
"16.0.4": "-ubuntu-22.04",
|
"16.0.4": "-ubuntu-22.04",
|
||||||
|
"17.0.2": "-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 = "16.0.4"
|
const MAX_UBUNTU: string = "17.0.2"
|
||||||
|
|
||||||
//================================================
|
//================================================
|
||||||
// URL
|
// URL
|
||||||
|
|
|
@ -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 "16.0.6"
|
return "17.0.3"
|
||||||
case "linux":
|
case "linux":
|
||||||
// used for non-ubuntu (Fedora, Arch)
|
// used for non-ubuntu (Fedora, Arch)
|
||||||
return "16.0.4-ubuntu-22.04"
|
return "17.0.2-ubuntu-22.04"
|
||||||
case "darwin":
|
case "darwin":
|
||||||
return "15.0.3"
|
return "15.0.3"
|
||||||
default:
|
default:
|
||||||
return "16.0.6"
|
return "17.0.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,22 +54,22 @@ export const DefaultLinuxVersion: Record<string, Record<number, string> | undefi
|
||||||
20: "7.0.0-2",
|
20: "7.0.0-2",
|
||||||
},
|
},
|
||||||
llvm: {
|
llvm: {
|
||||||
22: "16.0.4-ubuntu-22.04",
|
22: "17.0.2-ubuntu-22.04",
|
||||||
20: "16.0.4-ubuntu-22.04",
|
20: "17.0.2-ubuntu-22.04",
|
||||||
18: "15.0.6-ubuntu-18.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: "16.0.4-ubuntu-22.04",
|
22: "17.0.2-ubuntu-22.04",
|
||||||
20: "16.0.4-ubuntu-22.04",
|
20: "17.0.2-ubuntu-22.04",
|
||||||
18: "15.0.6-ubuntu-18.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: "16.0.4-ubuntu-22.04",
|
22: "17.0.2-ubuntu-22.04",
|
||||||
20: "16.0.4-ubuntu-22.04",
|
20: "17.0.2-ubuntu-22.04",
|
||||||
18: "15.0.6-ubuntu-18.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",
|
||||||
|
|
Loading…
Reference in New Issue