diff --git a/srcpkgs/go/template b/srcpkgs/go/template index c4ca645754..f420e94159 100644 --- a/srcpkgs/go/template +++ b/srcpkgs/go/template @@ -32,17 +32,15 @@ do_build() { export GOOS=linux cd src - # ARM build - export GOARCH=arm - bash make.bash - # x86 build - export GOARCH=386 - bash make.bash + # TODO We could very well also build windows and darwin + # cross-compilers here, at no added complexity - # x86_64 build - export GOARCH=amd64 - bash make.bash + # Build ARM, x86 and x86_64 compilers + for arch in arm 386 amd64; do + export GOARCH=$arch + bash make.bash --no-clean + done } do_install() {