]> Cypherpunks repositories - gostls13.git/commit
cmd/go: don't modify input slice in gccSupportsFlag
authorIan Lance Taylor <iant@golang.org>
Fri, 29 Sep 2017 18:10:20 +0000 (11:10 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 29 Sep 2017 18:54:12 +0000 (18:54 +0000)
commitc56434f6a616ae30cebac5d14d9fb6559a3fb157
tree91091f5aaa4e1cb21a7b1391923530d0e86e9068
parentbad5abf64d76f9c302c084c5f62e6f70920d3c81
cmd/go: don't modify input slice in gccSupportsFlag

Modifying the input slice broke the new test for whether gccgo
supports -fgo-importcfg, as the test passed a slice of the argument
slice it was in the process of building.

Fixes #22089

Change-Id: I45444a82673223c46be0c8579da3e31a74c32d73
Reviewed-on: https://go-review.googlesource.com/67191
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/go/internal/work/build.go