go: Correctly build (cross-)compilers

Without passing the --no-clean flag to make.bash, each build will
overwrite the previous one. This means that we always ended up with a
single compiler, that for x86_64.
This commit is contained in:
Dominik Honnef 2014-07-01 11:16:18 +02:00
parent 0a078fe95b
commit 7d234f5175

View file

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