fix: add the missing macos/windows versions

This commit is contained in:
Amin Yahyaabadi 2022-12-06 21:05:40 -08:00
parent 79523d501b
commit 0e9ce85be9
6 changed files with 16 additions and 14 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -59,13 +59,15 @@ export const VERSIONS: Set<string> = getVersions([
"15.0.2",
"15.0.3",
"15.0.4",
// missing binaries for Windows
// "15.0.5",
// "15.0.6",
"15.0.5",
"15.0.6",
])
/** The LLVM versions that were never released for the Windows platform. */
const WIN32_MISSING: Set<string> = new Set(["10.0.1", "15.0.5", "15.0.6"])
/** The LLVM versions that were never released for the Darwin platform. */
const DARWIN_MISSING: Set<string> = new Set([
const DARWIN_MISSING = new Set([
"3.5.1",
"3.6.1",
"3.6.2",
@ -79,6 +81,9 @@ const DARWIN_MISSING: Set<string> = new Set([
"11.0.1",
"11.1.0",
"12.0.1",
"15.0.4",
"15.0.5",
"15.0.6",
])
/**
@ -217,9 +222,6 @@ export function getLinuxUrl(versionGiven: string): string {
}
}
/** The LLVM versions that were never released for the Windows platform. */
const WIN32_MISSING: Set<string> = new Set(["10.0.1"])
/** Gets an LLVM download URL for the Windows platform. */
async function getWin32Url(version: string): Promise<string | null> {
if (WIN32_MISSING.has(version)) {

View File

@ -4,9 +4,9 @@ import { isArch } from "../utils/env/isArch"
// the directly downloaded tools require a given version ("" doesn't work).
export const DefaultVersions: Record<string, string> = {
llvm: "15.0.4", // https://github.com/llvm/llvm-project/releases
clangtidy: "15.0.4",
clangformat: "15.0.4",
llvm: process.platform === "darwin" ? "15.0.3" : "15.0.4", // https://github.com/llvm/llvm-project/releases
clangtidy: process.platform === "darwin" ? "15.0.3" : "15.0.4",
clangformat: process.platform === "darwin" ? "15.0.3" : "15.0.4",
ninja: "1.11.1", // https://github.com/ninja-build/ninja/releases
cmake: "3.25.0", // https://github.com/Kitware/CMake/releases
gcovr: "5.2", // https://pypi.org/project/gcovr/