]> Cypherpunks repositories - gostls13.git/commit
cmd/go: test: do not put object files where later steps will find them
authorMichael Hudson-Doyle <michael.hudson@linaro.org>
Wed, 8 Jan 2014 04:53:16 +0000 (23:53 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 8 Jan 2014 04:53:16 +0000 (23:53 -0500)
commit7178c05d05f2372c0c2b027c16b5e904d4259f6e
treed8e32306ceccd246a9eddddd5d0f7e9e2a08f9c7
parent020b39c3f3d3826d02c735c29d1dae7282aeb3f7
cmd/go: test: do not put object files where later steps will find them

When recompiling a package whose basename is the name of a standard
package for testing with gccgo, a .o file with the basename of the
package being tested was being placed in the _test/ directory where the
compilation of the test binary then found it when looking for the
standard library package.

This change puts the object files in a separate directory.

Fixes #6793

R=golang-codereviews, dave, gobot, rsc, iant
CC=golang-codereviews
https://golang.org/cl/27650045
src/cmd/go/test.go