]> Cypherpunks repositories - gostls13.git/commit
cmd/go: be more careful when linking a test exe with gccgo
authorMichael Hudson-Doyle <michael.hudson@canonical.com>
Thu, 18 Dec 2014 09:27:26 +0000 (22:27 +1300)
committerIan Lance Taylor <iant@golang.org>
Sun, 4 Jan 2015 21:01:15 +0000 (21:01 +0000)
commit19f2bd8c2e0030a807a45d9539569481f5edbda4
tree7ecc5c620cfe2893d271bd7b4355e0ecba7be831
parent281ae9288133a8880d910b96a1c0c96585ae3974
cmd/go: be more careful when linking a test exe with gccgo

Previously, we ended up passing two compiled objects for the package
being tested when linking the test executable.  Somewhat by luck, this
worked most of the time but occasionally it did not.  This changes the
linking code to not pass two objects for the same ImportPath and to
always pass the object for the test version of the package and removes
some unecessary nil checks.

Change-Id: I7bbd3fc708f14672ee2cc6aed3397421fceb8a38
Reviewed-on: https://go-review.googlesource.com/1840
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/build.go