]> Cypherpunks repositories - gostls13.git/commit
cmd/go: check compiler flags per compilers in gccSupportsFlag
authorHiroshi Ioka <hirochachacha@gmail.com>
Sun, 3 Sep 2017 14:11:45 +0000 (23:11 +0900)
committerIan Lance Taylor <iant@golang.org>
Sun, 10 Sep 2017 10:12:54 +0000 (10:12 +0000)
commitd254c61309845214084617eb5d3368bad91b609f
treeab7e46a67254fc7fd0cb1f8911e613aded949154
parent43807e0f47e62fe5a33c3f0ebcaf9fafbb46b80d
cmd/go: check compiler flags per compilers in gccSupportsFlag

Current code always uses a C compilers for checking compiler flags even
for non-C compilers. This CL solves the issue.

Fixes #21736

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