From dda0390156cd65cf2f70ff6ea4a3aa36e2ded002 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sat, 23 Aug 2014 10:52:12 +0200 Subject: [PATCH] Correctly set GOARM on ARM builds --- build.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.go b/build.go index c71c7a4e1..cc27b60a2 100644 --- a/build.go +++ b/build.go @@ -158,6 +158,7 @@ func test(pkg string) { func install(pkg string) { os.Setenv("GOBIN", "./bin") + setBuildEnv() runPrint("godep", "go", "install", "-ldflags", ldflags(), pkg) } @@ -212,6 +213,7 @@ func setBuildEnv() { os.Setenv("GOOS", goos) if strings.HasPrefix(goarch, "arm") { os.Setenv("GOARCH", "arm") + os.Setenv("GOARM", goarch[4:]) } else { os.Setenv("GOARCH", goarch) }