quan-xie / goclipse

Automatically exported from code.google.com/p/goclipse
0 stars 0 forks source link

Cross-Compile GOOS/GOARCH ignored #99

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
I added Issue #111 for that last paragraph that should have been filed as an 
enhancement bug.  The rest of this issue remains.

Original comment by dustyisa...@gmail.com on 18 Jun 2012 at 5:05