From 0af408ae6a3be853b40328abe0b0e703e631da53 Mon Sep 17 00:00:00 2001 From: Iain Chesworth Date: Sat, 21 Oct 2023 23:18:02 +1100 Subject: [PATCH 1/3] Add support for LLVM 17 on Windows, Linux. --- src/llvm/llvm_url.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/llvm/llvm_url.ts b/src/llvm/llvm_url.ts index 7e69f9ee..88debc32 100644 --- a/src/llvm/llvm_url.ts +++ b/src/llvm/llvm_url.ts @@ -69,6 +69,9 @@ export const VERSIONS: Set = 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. */ @@ -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", ]) /** @@ -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 From f1914d393676526187af9276b4144ff431904a9a Mon Sep 17 00:00:00 2001 From: Iain Chesworth Date: Sat, 21 Oct 2023 23:31:38 +1100 Subject: [PATCH 2/3] Update default on Windows to 17.0.3, Linux to 17.0.2, and the "default" to 17.0.3. --- src/versions/default_versions.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/versions/default_versions.ts b/src/versions/default_versions.ts index 0458f568..0e4b8fb6 100644 --- a/src/versions/default_versions.ts +++ b/src/versions/default_versions.ts @@ -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" } } From ec2fe0a7d511321b57e2e421963500789f303a79 Mon Sep 17 00:00:00 2001 From: Iain Chesworth Date: Sat, 21 Oct 2023 23:37:19 +1100 Subject: [PATCH 3/3] Add Ubuntu 22.04 specific default for LLVM 17.0.2 --- src/versions/default_versions.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/versions/default_versions.ts b/src/versions/default_versions.ts index 0e4b8fb6..9bc714bc 100644 --- a/src/versions/default_versions.ts +++ b/src/versions/default_versions.ts @@ -54,22 +54,22 @@ export const DefaultLinuxVersion: Record | 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",