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

Comments

Projects
None yet
4 participants
@davecheney
Contributor

davecheney commented Mar 2, 2015

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

This comment has been minimized.

Member

minux commented Mar 2, 2015

SGTM.

@robpike

This comment has been minimized.

Contributor

robpike commented Mar 2, 2015

SGTM

@rsc rsc closed this 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.