mirror of https://github.com/aminya/setup-cpp.git
fix: support solaris for LLVM
This commit is contained in:
parent
120e8ebbd0
commit
c231ef1f4a
|
|
@ -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
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue