Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(109)

Issue 103480044: code review 103480044: go/build: Easier cross-compiling with gccgo

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 3 months ago by eswierk
Modified:
11 years, 3 months ago
CC:
golang-codereviews
Visibility:
Public.

Description

go/build: Easier cross-compiling with gccgo Setting CROSS_COMPILE to xxx-yyy-zzz- causes go build to: - use gccgo rather than gc toolchain (similar to passing -compiler gccgo, except it doesn't whine when the architecture is something other than x86 or arm) - set GOARCH=xxx - set GOOS=yyy - enable cgo (and pass actual arch and os to cgo via GOARCH and GOOS) - prepend xxx-yyy-zzz- default compiler names, e.g. xxx-yyy-zzz-gccgo instead of gccgo You can still override these parameters individually by setting GOARCH, GOOS, CGO_ENABLED, CC, and so on. The goal is to make cross-compiling as transparent as possible, requiring only the CROSS_COMPILE environment variable to be set. If CROSS_COMPILE is empty or unset, go build works as usual.

Patch Set 1 : diff -r 6a85be121cae https://code.google.com/p/go #

Total comments: 5

Patch Set 2 : diff -r f2d2c6cc39a9 https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -13 lines) Patch
M src/cmd/go/build.go View 8 chunks +10 lines, -9 lines 0 comments Download
M src/pkg/go/build/build.go View 2 chunks +20 lines, -4 lines 0 comments Download

Messages

Total messages: 9
eswierk
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
11 years, 3 months ago (2014-06-17 03:15:30 UTC) #1
eswierk
Hello golang-codereviews@googlegroups.com (cc: golang-codereviews@googlegroups.com), Please take another look.
11 years, 3 months ago (2014-06-17 04:26:04 UTC) #2
iant
Thanks, but this gives us yet another environment variable to document and use. It's not ...
11 years, 3 months ago (2014-06-17 13:37:56 UTC) #3
aram
NOT LGTM Where is the discussion around this? Why do we need this new variable? ...
11 years, 3 months ago (2014-06-17 13:53:15 UTC) #4
eswierk
On 2014/06/17 13:53:15, aram wrote: > NOT LGTM > > Where is the discussion around ...
11 years, 3 months ago (2014-06-17 16:43:32 UTC) #5
eswierk
Hello golang-codereviews@googlegroups.com, iant@golang.org, aram@mgk.ro (cc: golang-codereviews@googlegroups.com), Please take another look.
11 years, 3 months ago (2014-06-17 16:51:37 UTC) #6
eswierk
On 2014/06/17 13:37:56, iant wrote: > Thanks, but this gives us yet another environment variable ...
11 years, 3 months ago (2014-06-17 17:25:28 UTC) #7
iant
On Tue, Jun 17, 2014 at 10:25 AM, <eswierk@gmail.com> wrote: > On 2014/06/17 13:37:56, iant ...
11 years, 3 months ago (2014-06-17 17:44:02 UTC) #8
gobot
11 years, 3 months ago (2014-07-16 11:00:18 UTC) #9
R=close (assigned by dave@cheney.net)
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b