diff options
author | Shenghou Ma <minux.ma@gmail.com> | 2014-04-21 00:02:21 -0400 |
---|---|---|
committer | Shenghou Ma <minux.ma@gmail.com> | 2014-04-21 00:02:21 -0400 |
commit | 666a9cd51bde6c21430a8afc5ac18ec11782eee2 (patch) | |
tree | 441e772a24b332d727dd7f21207429f0df0726b8 /src/cmd/go | |
parent | 81461afbeb27914c12e02f1ef4d729f875df2289 (diff) | |
download | go-666a9cd51bde6c21430a8afc5ac18ec11782eee2.tar.gz |
cmd/go: handle -ccflags in 'go test'
CL 89050043 only allows -ccflags for 'go test', this
CL really handles the flag like the other -??flags.
Many thanks to Dobros?aw ?ybort for pointing this out.
Fixes issue 7810 (again).
LGTM=iant, matrixik
R=golang-codereviews, iant, matrixik
CC=golang-codereviews
https://codereview.appspot.com/89230044
Diffstat (limited to 'src/cmd/go')
-rw-r--r-- | src/cmd/go/testflag.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cmd/go/testflag.go b/src/cmd/go/testflag.go index adfc2d921..8c45e5c1b 100644 --- a/src/cmd/go/testflag.go +++ b/src/cmd/go/testflag.go @@ -160,6 +160,11 @@ func testFlags(args []string) (packageNames, passToTest []string) { if err != nil { fatalf("invalid flag argument for -%s: %v", f.name, err) } + case "ccflags": + buildCcflags, err = splitQuotedFields(value) + if err != nil { + fatalf("invalid flag argument for -%s: %v", f.name, err) + } case "gcflags": buildGcflags, err = splitQuotedFields(value) if err != nil { |