Commit 807aadcd authored by Russ Cox's avatar Russ Cox

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
parent a385f38d
......@@ -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":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment