fix: support solaris for LLVM

This commit is contained in:
Amin Yahyaabadi 2025-01-11 23:40:34 -08:00
parent 120e8ebbd0
commit c231ef1f4a
7 changed files with 21 additions and 5 deletions

View File

@ -97,6 +97,7 @@ words:
- Sccache
- setupcpp
- setx
- sparcv
- SYSROOT
- Syuu
- terserrc

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

@ -3,7 +3,7 @@ import { fileURLToPath } from "url"
import { info } from "ci-log"
import { addExeExt } from "patha"
import { loadAssetList, matchAsset } from "../utils/asset/load-assets.js"
import { arm64, armv7, powerpc64le, sparc64, x86, x86_64 } from "../utils/env/arch.js"
import { arm64, armv7, powerpc64le, sparc64, sparcv9, x86, x86_64 } from "../utils/env/arch.js"
import { hasDnf } from "../utils/env/hasDnf.js"
import { isUbuntu } from "../utils/env/isUbuntu.js"
import { ubuntuVersion } from "../utils/env/ubuntu_version.js"
@ -162,6 +162,20 @@ async function getAssetKeywords(platform: string, arch: string) {
break
}
case "solaris": {
keywords.push("solaris")
if (x86_64.includes(arch)) {
keywords.push("amd64")
} else if (sparcv9.includes(arch)) {
keywords.push("sparcv9")
} else {
info(`Using arch ${arch} for LLVM`)
keywords.push(arch)
}
break
}
default:
info(`Using ${platform} ${arch} for LLVM`)
keywords.push(platform, arch)

View File

@ -4,3 +4,4 @@ export const arm64 = ["aarch64", "arm64", "woa64", "arm"]
export const armv7 = ["armv7", "armv7a"]
export const powerpc64le = ["powerpc64le", "ppc64le"]
export const sparc64 = ["sparc64"]
export const sparcv9 = ["sparcv9"]