mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
Mips build
This commit is contained in:
parent
dcd96df058
commit
ca42fa1fd5
@ -9,3 +9,4 @@ $GOPATH/bin/build --os=linux --arch=x86 --zip
|
||||
$GOPATH/bin/build --os=linux --arch=x64 --zip
|
||||
$GOPATH/bin/build --os=linux --arch=arm --zip
|
||||
$GOPATH/bin/build --os=linux --arch=arm64 --zip
|
||||
$GOPATH/bin/build --os=linux --arch=mips64 --zip
|
||||
|
@ -20,6 +20,7 @@ const (
|
||||
Amd64 = GoArch("amd64")
|
||||
Arm = GoArch("arm")
|
||||
Arm64 = GoArch("arm64")
|
||||
Mips64 = GoArch("mips64")
|
||||
UnknownArch = GoArch("unknown")
|
||||
)
|
||||
|
||||
@ -51,6 +52,9 @@ func parseArch(rawArch string) GoArch {
|
||||
if archStr == "arm64" {
|
||||
return Arm64
|
||||
}
|
||||
if archStr == "mips" || archStr == "mips64" {
|
||||
return Mips64
|
||||
}
|
||||
return UnknownArch
|
||||
}
|
||||
|
||||
@ -76,6 +80,8 @@ func getSuffix(os GoOS, arch GoArch) string {
|
||||
suffix = "-linux-arm"
|
||||
case Arm64:
|
||||
suffix = "-linux-arm64"
|
||||
case Mips64:
|
||||
suffix = "-linux-mips64"
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user