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

Issue 222890043: code review 222890043: go/cmd/go: always link external test packages first

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 1 month ago by dave
Modified:
9 years, 1 month ago
Reviewers:
iant
CC:
iant, michael.hudson, minux, gofrontend-dev_googlegroups.com
Visibility:
Public.

Description

go/cmd/go: always link external test packages first When linking complex packages that use both internal and external tests as well as many dependencies it is critical that the link order be external test package, internal test package, everything else. This change is a back (forward?) port of the same change that canonical have been maintaining on their fork of the go tool for gccgo. Now that gccgo uses the go tool from upstream, this patch should be applied both to the gofrontend and golang/go repos.

Patch Set 1 #

Patch Set 2 : diff -r 0def388e2919207cee03cd288038ff9876089104 https://code.google.com/p/gofrontend/ #

Patch Set 3 : diff -r 0def388e2919207cee03cd288038ff9876089104 https://code.google.com/p/gofrontend/ #

Total comments: 2

Patch Set 4 : diff -r 0def388e2919207cee03cd288038ff9876089104 https://code.google.com/p/gofrontend/ #

Patch Set 5 : diff -r 0def388e2919207cee03cd288038ff9876089104 https://code.google.com/p/gofrontend/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -5 lines) Patch
M libgo/go/cmd/go/build.go View 1 2 3 3 chunks +8 lines, -1 line 0 comments Download
M libgo/go/cmd/go/pkg.go View 1 1 chunk +1 line, -0 lines 0 comments Download
M libgo/go/cmd/go/test.go View 1 1 chunk +5 lines, -4 lines 0 comments Download

Messages

Total messages: 13
dave_cheney.net
Hello iant@golang.org, michael.hudson@canonical.com (cc: gofrontend-dev@googlegroups.com), I'd like you to review this change to https://code.google.com/p/gofrontend/
9 years, 1 month ago (2015-03-30 04:30:26 UTC) #1
dave_cheney.net
The reproduction for this issue is quite involved as you need to create a very ...
9 years, 1 month ago (2015-03-30 04:31:59 UTC) #2
minux
I think this needs to be applied to gc repository first.
9 years, 1 month ago (2015-03-30 04:34:02 UTC) #3
dave_cheney.net
Sure, i'll do that now. On Mon, Mar 30, 2015 at 3:33 PM, minux <minux@golang.org> ...
9 years, 1 month ago (2015-03-30 04:44:20 UTC) #4
dave_cheney.net
On 2015/03/30 04:44:20, dfc wrote: > Sure, i'll do that now. > > On Mon, ...
9 years, 1 month ago (2015-03-30 04:51:00 UTC) #5
dave_cheney.net
On 2015/03/30 04:51:00, dfc wrote: > On 2015/03/30 04:44:20, dfc wrote: > > Sure, i'll ...
9 years, 1 month ago (2015-03-30 05:08:32 UTC) #6
iant
https://codereview.appspot.com/222890043/diff/40001/libgo/go/cmd/go/build.go File libgo/go/cmd/go/build.go (right): https://codereview.appspot.com/222890043/diff/40001/libgo/go/cmd/go/build.go#newcode1944 libgo/go/cmd/go/build.go:1944: xfiles = append([]string{a.target}, xfiles...) For afiles, we needed to ...
9 years, 1 month ago (2015-03-30 18:06:26 UTC) #7
dave_cheney.net
Hello iant@golang.org, michael.hudson@canonical.com, minux@golang.org (cc: gofrontend-dev@googlegroups.com), Please take another look.
9 years, 1 month ago (2015-03-31 08:30:44 UTC) #8
dave_cheney.net
https://codereview.appspot.com/222890043/diff/40001/libgo/go/cmd/go/build.go File libgo/go/cmd/go/build.go (right): https://codereview.appspot.com/222890043/diff/40001/libgo/go/cmd/go/build.go#newcode1944 libgo/go/cmd/go/build.go:1944: xfiles = append([]string{a.target}, xfiles...) On 2015/03/30 18:06:25, iant wrote: ...
9 years, 1 month ago (2015-03-31 08:35:31 UTC) #9
iant
LGTM
9 years, 1 month ago (2015-03-31 17:51:40 UTC) #10
dave_cheney.net
Ian, will you merge this into gofrontend and possible gcc/trunk ? On Wed, Apr 1, ...
9 years, 1 month ago (2015-03-31 17:53:32 UTC) #11
iant
*** Submitted as https://code.google.com/p/gofrontend/source/detail?r=15a24202fa42 *** go/cmd/go: always link external test packages first When linking complex ...
9 years, 1 month ago (2015-03-31 17:53:47 UTC) #12
iant
9 years, 1 month ago (2015-03-31 17:57:25 UTC) #13
On Tue, Mar 31, 2015 at 10:53 AM, Dave Cheney <dave@cheney.net> wrote:
> Ian, will you merge this into gofrontend and possible gcc/trunk ?

Yes.

Ian

> On Wed, Apr 1, 2015 at 4:51 AM,  <iant@golang.org> wrote:
>> LGTM
>>
>> https://codereview.appspot.com/222890043/
Sign in to reply to this message.

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