From fb8cbe4b20dd2ec07135c0f538e3119f433decd4 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Mon, 9 Jan 2017 15:47:10 +0100 Subject: [PATCH] add support for mips and mipsle --- tools/build/env.go | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tools/build/env.go b/tools/build/env.go index 2d4c2bbb5..158952a65 100644 --- a/tools/build/env.go +++ b/tools/build/env.go @@ -23,6 +23,8 @@ const ( Arm = GoArch("arm") Arm64 = GoArch("arm64") Mips64 = GoArch("mips64") + Mips = GoArch("mips") + MipsLE = GoArch("mipsle") UnknownArch = GoArch("unknown") ) @@ -55,7 +57,11 @@ func parseArch(rawArch string) GoArch { return Arm case "arm64": return Arm64 - case "mips", "mips64": + case "mips": + return Mips + case "mipsle": + return MipsLE + case "mips64": return Mips64 default: return UnknownArch @@ -86,6 +92,10 @@ func getSuffix(os GoOS, arch GoArch) string { suffix = "-linux-arm64" case Mips64: suffix = "-linux-mips64" + case Mips: + suffix = "-linux-mips" + case MipsLE: + suffix = "-linux-mipsle" } case FreeBSD: switch arch {