mirror of
https://github.com/golang/go
synced 2024-11-25 19:07:57 -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":
|
case "tags":
|
||||||
buildContext.BuildTags = strings.Fields(value)
|
buildContext.BuildTags = strings.Fields(value)
|
||||||
case "compiler":
|
case "compiler":
|
||||||
buildContext.Compiler = value
|
buildCompiler{}.Set(value)
|
||||||
case "file":
|
case "file":
|
||||||
testFiles = append(testFiles, value)
|
testFiles = append(testFiles, value)
|
||||||
case "bench":
|
case "bench":
|
||||||
|
Loading…
Reference in New Issue
Block a user