]> Cypherpunks repositories - gostls13.git/commit
cmd/go: if we get a C compiler dwarf2 warning, try without -g
authorIan Lance Taylor <iant@golang.org>
Sat, 11 Mar 2017 01:03:52 +0000 (17:03 -0800)
committerIan Lance Taylor <iant@golang.org>
Sat, 11 Mar 2017 01:19:13 +0000 (01:19 +0000)
commitfe3458550bfee0c842393e44e096fd64c666d909
tree2814039e93db9abf7fe11b4dc552d7e6272e7586
parent2de773d45f202d38c981a433880e867a7b5d0745
cmd/go: if we get a C compiler dwarf2 warning, try without -g

This avoids a problem that occurs on FreeBSD 11, in which the clang
3.8 assembler issues a pointless warning when invoked with -g on a
file that contains an empty .note.GNU-stack section.

No test because there is no reasonable way to write one, but should
fix the build on FreeBSD 11.

Fixes #14705.

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