]> Cypherpunks repositories - gostls13.git/commit
cmd/go: look for "unknown" when checking supported compiler flags
authorIan Lance Taylor <iant@golang.org>
Fri, 20 Oct 2017 16:51:45 +0000 (09:51 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 20 Oct 2017 17:32:35 +0000 (17:32 +0000)
commita607b3b437291db4699c48f5b86ac04b38ff5e8a
treeaed69e78fc07b3f5ed4ad49f6bca4120ef68b6b2
parent2f40dc79e5febf2c27303285ef853a5dd064f777
cmd/go: look for "unknown" when checking supported compiler flags

Where GCC says "unrecognized command line option", clang says "unknown
argument". This distinction usually doesn't matter because the
compiler will also exit with a non-zero status, but clang 3.4
reportedly exits with a zero status after reporting an unknown argument.

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