Correctly set GOARM on ARM builds

This commit is contained in:
Jakob Borg 2014-08-23 10:52:12 +02:00
parent c74509dd5f
commit dda0390156
1 changed files with 2 additions and 0 deletions

View File

@ -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)
}