Skip to content
This repository has been archived by the owner on Apr 3, 2018. It is now read-only.

How to cross compile by project? #152

Closed
lukexue opened this issue Aug 18, 2015 · 2 comments
Closed

How to cross compile by project? #152

lukexue opened this issue Aug 18, 2015 · 2 comments

Comments

@lukexue
Copy link

lukexue commented Aug 18, 2015

Need to build x86/x64 in difference project.
How to set environment variable
GOOS=linux
GOARCH=386
CGO_ENABLED=0
go build ...
in other project?

@bruno-medeiros
Copy link
Contributor

Unfortunately it's not possible at the moment. I'll see if I can add support for that in next version. In the meanwhile, a workaround is to start a difference Eclipse instance in a different Eclipse workspace (and configure a different GOROOT in that other Eclipse instance)

@bruno-medeiros
Copy link
Contributor

I've added support for this in ~master, next version will have this.

bruno-medeiros added a commit that referenced this issue Oct 20, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants