mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 10:08:15 -05:00
add support for mips and mipsle
This commit is contained in:
parent
d999bf62e2
commit
fb8cbe4b20
@ -23,6 +23,8 @@ const (
|
|||||||
Arm = GoArch("arm")
|
Arm = GoArch("arm")
|
||||||
Arm64 = GoArch("arm64")
|
Arm64 = GoArch("arm64")
|
||||||
Mips64 = GoArch("mips64")
|
Mips64 = GoArch("mips64")
|
||||||
|
Mips = GoArch("mips")
|
||||||
|
MipsLE = GoArch("mipsle")
|
||||||
UnknownArch = GoArch("unknown")
|
UnknownArch = GoArch("unknown")
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -55,7 +57,11 @@ func parseArch(rawArch string) GoArch {
|
|||||||
return Arm
|
return Arm
|
||||||
case "arm64":
|
case "arm64":
|
||||||
return Arm64
|
return Arm64
|
||||||
case "mips", "mips64":
|
case "mips":
|
||||||
|
return Mips
|
||||||
|
case "mipsle":
|
||||||
|
return MipsLE
|
||||||
|
case "mips64":
|
||||||
return Mips64
|
return Mips64
|
||||||
default:
|
default:
|
||||||
return UnknownArch
|
return UnknownArch
|
||||||
@ -86,6 +92,10 @@ func getSuffix(os GoOS, arch GoArch) string {
|
|||||||
suffix = "-linux-arm64"
|
suffix = "-linux-arm64"
|
||||||
case Mips64:
|
case Mips64:
|
||||||
suffix = "-linux-mips64"
|
suffix = "-linux-mips64"
|
||||||
|
case Mips:
|
||||||
|
suffix = "-linux-mips"
|
||||||
|
case MipsLE:
|
||||||
|
suffix = "-linux-mipsle"
|
||||||
}
|
}
|
||||||
case FreeBSD:
|
case FreeBSD:
|
||||||
switch arch {
|
switch arch {
|
||||||
|
Loading…
Reference in New Issue
Block a user