fix: increase the gain of win64

This commit is contained in:
Amin Yahyaabadi 2025-01-12 01:25:50 -08:00
parent 6351fa6075
commit 4c12eccdfd
5 changed files with 7 additions and 6 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

@ -83,8 +83,10 @@ async function getAssetKeywords(platform: string, arch: string) {
switch (platform) {
case "win32": {
optionalKeywords.push("windows", "Windows")
if (x86_64.includes(arch)) {
optionalKeywords.push("win64", "x86_64", "X64")
// prefer win64 keyword over x86_64 or x64
optionalKeywords.push("win64", "win64", "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")
@ -94,7 +96,6 @@ async function getAssetKeywords(platform: string, arch: string) {
info(`Using arch ${arch} for LLVM`)
keywords.push(arch)
}
optionalKeywords.push("windows", "Windows")
break
}
case "linux": {