Skip to content

Instantly share code, notes, and snippets.

@surma
Created November 26, 2012 19:34
Show Gist options
  • Save surma/4150137 to your computer and use it in GitHub Desktop.
Save surma/4150137 to your computer and use it in GitHub Desktop.
Go Crosschain builder
#!/bin/bash
cd $GOROOT/src
./clean.bash
for GOOS in darwin linux openbsd freebsd netbsd plan9; do
for GOARCH in 386 amd64; do
GOOS=$GOOS GOARCH=$GOARCH CGO_ENABLED=0 ./make.bash --no-clean
done
done
unset GOOS
unset GOARCH
CGO_ENABLED=1 ./make.bash --no-clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment