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
add cross-compilation support for go compiler #3603
Conversation
So you unconditionally build a set of cross-compilers? How does this affect build time? |
@7c6f434c Speaking anecdotally, I didn't notice much of a difference in build time - the initial compilation & test pass comprises most of the build time from what I can tell. I can |
I don't want real numbers, I want @viric to say if always doing this is I just wanted to make sure it is not a 2× slowdown first (if it were, |
Well, looks like I was wrong:
I'll make it an option. |
As for me, the option could be there, but you can enable it by default. I'd also enjoy this go cross compilation. On Wed, Sep 03, 2014 at 12:39:50PM -0700, Charles Strahan wrote:
|
"default" = Golang used for golang-using packages in NixPkgs. Why should Of course, like with pythonFull, many human users will just use |
On Wed, Sep 03, 2014 at 12:52:28PM -0700, Michael Raskin wrote:
I agree with you. Thank you! |
I think the |
I'll make cross compilation support optional (but enabled by default). I'll do that tomorrow. |
@cstrahan So? Or is there another solution committed by now? |
@cstrahan ping? |
I tried applying the changes to our Go 1.4, but it fails on the first cross-compiler:
I don't know why this stopped working, nor how to pull in a 32-bit glibc. If someone can lend a hand here, I can wrap this up and merge it. On the other hand, Go 1.5 (supposedly) supports cross compilation by default, and since we have Go 1.5, I don't see how cross-compilation is important for Go 1.4 - unless someone actually has a use case for it. So, I'm of the opinion that we should just close this PR. Thoughts? |
Any further ideas? :( |
I think this is resolved, thanks to the latest Go releases; closing. |
This adds cross-compilation support to the Go compiler.