mirror of https://github.com/aminya/setup-cpp.git
fix: better matching of LLVM urls for newer releases
This commit is contained in:
parent
97d8a63d36
commit
120e8ebbd0
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
|
|
@ -83,8 +83,9 @@ async function getAssetKeywords(platform: string, arch: string) {
|
|||
|
||||
switch (platform) {
|
||||
case "win32": {
|
||||
keywords.push("windows", "Windows")
|
||||
if (x86_64.includes(arch)) {
|
||||
keywords.push("win64")
|
||||
keywords.push("win64", "x86_64", "X64")
|
||||
// TODO fallback to win32 if win64 is not available (e.g. for LLVM 3.6.2 and older)
|
||||
} else if (x86.includes(arch)) {
|
||||
keywords.push("win32")
|
||||
|
|
@ -97,7 +98,7 @@ async function getAssetKeywords(platform: string, arch: string) {
|
|||
break
|
||||
}
|
||||
case "linux": {
|
||||
keywords.push("linux")
|
||||
keywords.push("linux", "Linux")
|
||||
|
||||
if (isUbuntu()) {
|
||||
optionalKeywords.push("ubuntu")
|
||||
|
|
@ -115,7 +116,7 @@ async function getAssetKeywords(platform: string, arch: string) {
|
|||
}
|
||||
|
||||
if (x86_64.includes(arch)) {
|
||||
keywords.push("x86_64")
|
||||
keywords.push("x86_64", "X64")
|
||||
} else if (x86.includes(arch)) {
|
||||
keywords.push("x86")
|
||||
} else if (arm64.includes(arch)) {
|
||||
|
|
@ -134,13 +135,13 @@ async function getAssetKeywords(platform: string, arch: string) {
|
|||
break
|
||||
}
|
||||
case "darwin": {
|
||||
keywords.push("apple")
|
||||
keywords.push("apple", "macos", "macOS")
|
||||
|
||||
if (x86_64.includes(arch)) {
|
||||
keywords.push("x86_64")
|
||||
keywords.push("x86_64", "X64")
|
||||
} else if (arm64.includes(arch)) {
|
||||
// allow falling back to x86_64 if arm64 is not available
|
||||
optionalKeywords.push("arm64")
|
||||
optionalKeywords.push("arm64", "ARM64")
|
||||
} else {
|
||||
info(`Using arch ${arch} for LLVM`)
|
||||
keywords.push(arch)
|
||||
|
|
|
|||
Loading…
Reference in New Issue