]> Cypherpunks repositories - gostls13.git/commit
cmd/go: apply same per-package flags to test and xtest builds
authorRuss Cox <rsc@golang.org>
Fri, 1 Dec 2017 16:26:09 +0000 (11:26 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 1 Dec 2017 19:47:39 +0000 (19:47 +0000)
commit1c55f579be28c2e959bdfbe7688cba06556dff4b
treebf20ef4efd70a17c395a503603dc5c88b2816dc2
parent4fb0af5d5391e5e5f8b47f425b5ceb17c3521a72
cmd/go: apply same per-package flags to test and xtest builds

If package strings has a particular set of gcflags, then the strings_test
pseudo-package built as part of the test binary should inherit the same flags.

Fixes #22831.

Change-Id: I0e896b6c0f1063454300b7323f577feffbd6650b
Reviewed-on: https://go-review.googlesource.com/81496
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/go_test.go
src/cmd/go/internal/test/test.go