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:
parent
a385f38dfa
commit
807aadcd3e
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user