mirror of https://github.com/aminya/setup-cpp
Merge pull request #172 from aminya/mingw [skip ci]
This commit is contained in:
commit
d5cf571621
|
@ -11,6 +11,7 @@ ignorePaths:
|
||||||
- "**/node_modules/"
|
- "**/node_modules/"
|
||||||
words:
|
words:
|
||||||
- aarch
|
- aarch
|
||||||
|
- clangd
|
||||||
- aminya
|
- aminya
|
||||||
- applellvm
|
- applellvm
|
||||||
- bazel
|
- bazel
|
||||||
|
|
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
|
@ -25,7 +25,12 @@ interface MingwInfo {
|
||||||
|
|
||||||
// https://github.com/brechtsanders/winlibs_mingw/releases
|
// https://github.com/brechtsanders/winlibs_mingw/releases
|
||||||
const GccToMingwInfo = {
|
const GccToMingwInfo = {
|
||||||
"12": { releaseName: "12.2.0-14.0.6-10.0.0-ucrt-r2", fileSuffix: "12.2.0-mingw-w64ucrt-10.0.0-r2" },
|
"13": { releaseName: "13.1.0posix-16.0.3-11.0.0-ucrt-r1", fileSuffix: "13.1.0-mingw-w64ucrt-11.0.0-r1" },
|
||||||
|
"13.1-ucrt": { releaseName: "13.1.0posix-16.0.3-11.0.0-ucrt-r1", fileSuffix: "13.1.0-mingw-w64ucrt-11.0.0-r1" },
|
||||||
|
"13.1-msvcrt": { releaseName: "13.1.0posix-16.0.3-11.0.0-msvcrt-r1", fileSuffix: "13.1.0-mingw-w64msvcrt-11.0.0-r1" },
|
||||||
|
"12": { releaseName: "12.3.0-16.0.4-11.0.0-ucrt-r1", fileSuffix: "12.3.0-mingw-w64ucrt-11.0.0-r1" },
|
||||||
|
"12.3.0-ucrt": { releaseName: "12.3.0-16.0.4-11.0.0-ucrt-r1", fileSuffix: "12.3.0-mingw-w64ucrt-11.0.0-r1" },
|
||||||
|
"12.3.0-msvcrt": { releaseName: "12.3.0-16.0.4-11.0.0-msvcrt-r1", fileSuffix: "12.3.0-mingw-w64msvcrt-11.0.0-r1" },
|
||||||
"12.2.0-ucrt": { releaseName: "12.2.0-14.0.6-10.0.0-ucrt-r2", fileSuffix: "12.2.0-mingw-w64ucrt-10.0.0-r2" },
|
"12.2.0-ucrt": { releaseName: "12.2.0-14.0.6-10.0.0-ucrt-r2", fileSuffix: "12.2.0-mingw-w64ucrt-10.0.0-r2" },
|
||||||
"12.2.0-msvcrt": { releaseName: "12.2.0-14.0.6-10.0.0-msvcrt-r2", fileSuffix: "12.2.0-mingw-w64msvcrt-10.0.0-r2" },
|
"12.2.0-msvcrt": { releaseName: "12.2.0-14.0.6-10.0.0-msvcrt-r2", fileSuffix: "12.2.0-mingw-w64msvcrt-10.0.0-r2" },
|
||||||
"12.1.0-ucrt": { releaseName: "12.1.0-14.0.4-10.0.0-ucrt-r2", fileSuffix: "12.1.0-mingw-w64ucrt-10.0.0-r2" },
|
"12.1.0-ucrt": { releaseName: "12.1.0-14.0.4-10.0.0-ucrt-r2", fileSuffix: "12.1.0-mingw-w64ucrt-10.0.0-r2" },
|
||||||
|
|
|
@ -65,6 +65,8 @@ export const VERSIONS: Set<string> = getVersions([
|
||||||
"16.0.0",
|
"16.0.0",
|
||||||
"16.0.1",
|
"16.0.1",
|
||||||
"16.0.2",
|
"16.0.2",
|
||||||
|
"16.0.3",
|
||||||
|
"16.0.4",
|
||||||
])
|
])
|
||||||
|
|
||||||
/** The LLVM versions that were never released for the Windows platform. */
|
/** The LLVM versions that were never released for the Windows platform. */
|
||||||
|
@ -93,6 +95,8 @@ const DARWIN_MISSING = new Set([
|
||||||
"16.0.0",
|
"16.0.0",
|
||||||
"16.0.1",
|
"16.0.1",
|
||||||
"16.0.2",
|
"16.0.2",
|
||||||
|
"16.0.3",
|
||||||
|
"16.0.4",
|
||||||
])
|
])
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -152,6 +156,8 @@ const UBUNTU_SUFFIX_MAP: { [key: string]: string } = {
|
||||||
"15.0.6": "-ubuntu-18.04",
|
"15.0.6": "-ubuntu-18.04",
|
||||||
"16.0.0": "-ubuntu-18.04",
|
"16.0.0": "-ubuntu-18.04",
|
||||||
"16.0.2": "-ubuntu-22.04",
|
"16.0.2": "-ubuntu-22.04",
|
||||||
|
"16.0.3": "-ubuntu-22.04",
|
||||||
|
"16.0.4": "-ubuntu-22.04",
|
||||||
}
|
}
|
||||||
|
|
||||||
/** The latest supported LLVM version for the Linux (Ubuntu) platform. */
|
/** The latest supported LLVM version for the Linux (Ubuntu) platform. */
|
||||||
|
|
|
@ -49,7 +49,11 @@ export async function getSpecificVersionAndUrl(
|
||||||
|
|
||||||
// if the given set doesn't include the version, throw an error
|
// if the given set doesn't include the version, throw an error
|
||||||
if (!versions.has(version)) {
|
if (!versions.has(version)) {
|
||||||
throw new Error(`Unsupported target! (platform='${platform}', version='${version}')`)
|
throw new Error(
|
||||||
|
`Unsupported target! (platform='${platform}', version='${version}'). Try one of the following: ${JSON.stringify(
|
||||||
|
versions
|
||||||
|
)}`
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const offlineUrls: string[] = []
|
const offlineUrls: string[] = []
|
||||||
|
@ -68,8 +72,8 @@ export async function getSpecificVersionAndUrl(
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`Unsupported target! (platform='${platform}', version='${version}'). The offline urls tested:\n${offlineUrls.join(
|
`Unsupported target! (platform='${platform}', version='${version}'). Try one of the following: ${JSON.stringify(
|
||||||
"\n"
|
versions
|
||||||
)}`
|
)}`
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue