From 3f2b85a8d14cb0435a84501ac9f25d80d6129348 Mon Sep 17 00:00:00 2001 From: Vladimir Stefanovic Date: Tue, 18 Oct 2016 23:50:54 +0200 Subject: [PATCH] cmd/cgo: add support for GOARCH=mips{,le} Change-Id: I47c6867fc653c8388ad32e210a8027baa592eda3 Reviewed-on: https://go-review.googlesource.com/31483 Run-TryBot: Brad Fitzpatrick TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- src/cmd/cgo/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cmd/cgo/main.go b/src/cmd/cgo/main.go index 77b45a5aed7..df2798397c8 100644 --- a/src/cmd/cgo/main.go +++ b/src/cmd/cgo/main.go @@ -143,6 +143,8 @@ var ptrSizeMap = map[string]int64{ "amd64": 8, "arm": 4, "arm64": 8, + "mips": 4, + "mipsle": 4, "mips64": 8, "mips64le": 8, "ppc64": 8, @@ -156,6 +158,8 @@ var intSizeMap = map[string]int64{ "amd64": 8, "arm": 4, "arm64": 8, + "mips": 4, + "mipsle": 4, "mips64": 8, "mips64le": 8, "ppc64": 8,