1
0
mirror of https://github.com/golang/go synced 2024-11-22 04:14:42 -07:00

cmd/go: fix go test -compiler

The compiler must be changed with the Set method
so that the buildToolchain gets updated too.

Fixes #3231.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5768044
This commit is contained in:
Russ Cox 2012-03-07 12:09:43 -05:00
parent a385f38dfa
commit 807aadcd3e

View File

@ -142,7 +142,7 @@ func testFlags(args []string) (packageNames, passToTest []string) {
case "tags":
buildContext.BuildTags = strings.Fields(value)
case "compiler":
buildContext.Compiler = value
buildCompiler{}.Set(value)
case "file":
testFiles = append(testFiles, value)
case "bench":