]> Cypherpunks repositories - gostls13.git/commit
cmd/go: fix clang option handling
authorJoel Sing <joel@sing.id.au>
Thu, 31 Aug 2017 17:14:38 +0000 (03:14 +1000)
committerIan Lance Taylor <iant@golang.org>
Fri, 1 Sep 2017 00:31:15 +0000 (00:31 +0000)
commit51e92d7261ac99ded0b2ad06fe01e71586cbd2bf
treeb4a86524b6d11b49d59becaf17099a66c23a7d21
parent44e86bef06397cb64f158c3561544100b70d525a
cmd/go: fix clang option handling

On OpenBSD -current, clang is available/installed as 'cc'. This means that
the existing clang check fails and the clang related flags are not enabled.
Fix this by enabling the clang flags if the compiler claims to support them.

Change-Id: I84d124d2409a10f87002c6cbfdb69b4c9a55981a
Reviewed-on: https://go-review.googlesource.com/60750
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