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

Issue 5756047: code review 5756047: cmd/go: add -compiler (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 2 months ago by rsc
Modified:
13 years, 2 months ago
CC:
golang-dev, r
Visibility:
Public.

Description

cmd/go: add -compiler go/build: add Context.Compiler Fixes issue 3157.

Patch Set 1 #

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

Patch Set 3 : diff -r e219970cdf9f https://code.google.com/p/go/ #

Total comments: 1

Patch Set 4 : diff -r 14ce8252402b https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -40 lines) Patch
M src/cmd/go/build.go View 1 2 15 chunks +96 lines, -31 lines 0 comments Download
M src/cmd/go/testflag.go View 1 2 chunks +3 lines, -0 lines 0 comments Download
M src/pkg/go/build/build.go View 1 2 3 7 chunks +17 lines, -9 lines 0 comments Download

Messages

Total messages: 8
rsc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
13 years, 2 months ago (2012-03-06 04:13:12 UTC) #1
r
LGTM http://codereview.appspot.com/5756047/diff/4001/src/pkg/go/build/build.go File src/pkg/go/build/build.go (right): http://codereview.appspot.com/5756047/diff/4001/src/pkg/go/build/build.go#newcode346 src/pkg/go/build/build.go:346: } default: errorf
13 years, 2 months ago (2012-03-06 04:27:00 UTC) #2
rsc
*** Submitted as dfb32d4dcab2 *** cmd/go: add -compiler go/build: add Context.Compiler Fixes issue 3157. R=golang-dev, ...
13 years, 2 months ago (2012-03-06 05:36:27 UTC) #3
albert.strasheim
Hello On 2012/03/06 05:36:27, rsc wrote: > *** Submitted as dfb32d4dcab2 *** > cmd/go: add ...
13 years, 2 months ago (2012-03-06 05:49:22 UTC) #4
minux1
On Tue, Mar 6, 2012 at 1:49 PM, <fullung@gmail.com> wrote: > > On 2012/03/06 05:36:27, ...
13 years, 2 months ago (2012-03-06 15:10:53 UTC) #5
albert.strasheim
Hello On Tue, Mar 6, 2012 at 5:10 PM, minux <minux.ma@gmail.com> wrote: > On Tue, ...
13 years, 2 months ago (2012-03-06 15:17:52 UTC) #6
minux1
On Tue, Mar 6, 2012 at 11:17 PM, Albert Strasheim <fullung@gmail.com> wrote: > On Tue, ...
13 years, 2 months ago (2012-03-06 15:47:18 UTC) #7
rsc
13 years, 2 months ago (2012-03-06 18:49:05 UTC) #8
On Tue, Mar 6, 2012 at 00:49,  <fullung@gmail.com> wrote:
> Given this change, does it still make sense to have gccgoflags in
> addition to gcflags and ldflags? I can't think of any right now, but
> maybe there are flags that should be passed to gccgo when compiling, but
> not linking?

They are for different compilers.
gcflags is for 6g
ldflags is for 6l
gccgoflags is for gccgo
(and it can use -Wl,-foo for link-only flags).

I think it's a feature that you can't accidentally give flags intended for
one compiler to the other.

Russ
Sign in to reply to this message.

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