GOOS and GOARCH preferences are ignored.
In the Eclipse Go preferences section, the GOOS and GOARCH boxes are set for
Windows/386 but the resulting binary is Linux/amd64 (which is the host). At
some point before the big switch in GoClipse to go1 this worked. But now it
just seems that the wiring from the preferences is disconnected from the actual
compilation stage.
"GOOS=windows GOARCH=386 go build" works fine, so it's not a lack of necessary
stuff within Go itself.
I followed these instructions to prepare for cross-compiling:
http://code.google.com/p/go-wiki/wiki/WindowsCrossCompiling
As an aside (which should probably be an enhancement report), it would be neat
if there would be a way to do cross-compiling by clicking a certain button,
choosing a setting via a dropdown, or by compiling for all chosen OS/ARCH
combos every time.
Original issue reported on code.google.com by dustyisa...@gmail.com on 26 Apr 2012 at 10:27
Original issue reported on code.google.com by
dustyisa...@gmail.com
on 26 Apr 2012 at 10:27