Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/go: easier cross compilation #10049

Closed
davecheney opened this issue Mar 2, 2015 · 2 comments
Closed

cmd/go: easier cross compilation #10049

davecheney opened this issue Mar 2, 2015 · 2 comments
Milestone

Comments

@davecheney
Copy link
Contributor

Currently cross compilation requires the user to build their native toolchain (all.bash) then rebuild their toolchain (env GOOS=... GOARCH=... make.bash --no-clean).

This is problematic for a number of reasons, most notably, we guide people towards the binary releases of Go which prevent this recompilation step because the binary releases are not owned by the user.

With the advent of the rewrite of the compilers, users of 1.5 will have all the compilers as part of the binary installer. The only remaining issue is they will not have copies of textflag.h and funcdata.h in $GOROOT/pkg/$GOOS_$GOARCH.

It turns out that the contents of these two files do not change from architecture to architecture so as long as one copy of them exists in $GOROOT, all targets can reference them.

@davecheney davecheney added this to the Go1.5 milestone Mar 2, 2015
@minux
Copy link
Member

minux commented Mar 2, 2015

SGTM.

@robpike
Copy link
Contributor

robpike commented Mar 2, 2015

SGTM

@rsc rsc closed this as completed in 190357d Mar 2, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants