Skip to content

Commit

Permalink
Merge pull request #209 from iainchesworth/feature/add-support-for-ll…
Browse files Browse the repository at this point in the history
…vm-17

Feature/add support for llvm 17
  • Loading branch information
aminya authored Oct 22, 2023
2 parents a296e2c + ec2fe0a commit c3c5a81
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
9 changes: 8 additions & 1 deletion src/llvm/llvm_url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ export const VERSIONS: Set<string> = getVersions([
"16.0.4",
"16.0.5",
"16.0.6",
"17.0.1",
"17.0.2",
"17.0.3",
])

/** The LLVM versions that were never released for the Windows platform. */
Expand Down Expand Up @@ -101,6 +104,9 @@ const DARWIN_MISSING = new Set([
"16.0.4",
"16.0.5",
"16.0.6",
"17.0.1",
"17.0.2",
"17.0.3",
])

/**
Expand Down Expand Up @@ -162,10 +168,11 @@ const UBUNTU_SUFFIX_MAP: { [key: string]: string } = {
"16.0.2": "-ubuntu-22.04",
"16.0.3": "-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. */
const MAX_UBUNTU: string = "16.0.4"
const MAX_UBUNTU: string = "17.0.2"

//================================================
// URL
Expand Down
18 changes: 9 additions & 9 deletions src/versions/default_versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ import { isArch } from "../utils/env/isArch"
function getLLVMDefault() {
switch (process.platform) {
case "win32":
return "16.0.6"
return "17.0.3"
case "linux":
// used for non-ubuntu (Fedora, Arch)
return "16.0.4-ubuntu-22.04"
return "17.0.2-ubuntu-22.04"
case "darwin":
return "15.0.3"
default:
return "16.0.6"
return "17.0.3"
}
}

Expand Down Expand Up @@ -54,22 +54,22 @@ export const DefaultLinuxVersion: Record<string, Record<number, string> | undefi
20: "7.0.0-2",
},
llvm: {
22: "16.0.4-ubuntu-22.04",
20: "16.0.4-ubuntu-22.04",
22: "17.0.2-ubuntu-22.04",
20: "17.0.2-ubuntu-22.04",
18: "15.0.6-ubuntu-18.04",
16: "15.0.6-ubuntu-18.04",
14: "13.0.0-ubuntu-16.04",
},
clangtidy: {
22: "16.0.4-ubuntu-22.04",
20: "16.0.4-ubuntu-22.04",
22: "17.0.2-ubuntu-22.04",
20: "17.0.2-ubuntu-22.04",
18: "15.0.6-ubuntu-18.04",
16: "15.0.6-ubuntu-18.04",
14: "13.0.0-ubuntu-16.04",
},
clangformat: {
22: "16.0.4-ubuntu-22.04",
20: "16.0.4-ubuntu-22.04",
22: "17.0.2-ubuntu-22.04",
20: "17.0.2-ubuntu-22.04",
18: "15.0.6-ubuntu-18.04",
16: "15.0.6-ubuntu-18.04",
14: "13.0.0-ubuntu-16.04",
Expand Down

0 comments on commit c3c5a81

Please sign in to comment.