1
0
mirror of https://github.com/golang/go synced 2024-10-05 01:21:21 -06:00
go/src/cmd
Russ Cox 0c7ccbf601 cmd/go: ignore C files when CGO_ENABLED=0
Before, those C files might have been intended for the Plan 9 C compiler,
but that option was removed in Go 1.5. We can simplify the maintenance
of cgo packages now if we assume C files (and C++ and M and SWIG files)
should only be considered when cgo is enabled.

Also remove newly unnecessary build tags in runtime/cgo's C files.

Fixes #14123

Change-Id: Ia5a7fe62b9469965aa7c3547fe43c6c9292b8205
Reviewed-on: https://go-review.googlesource.com/19613
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2016-03-08 20:10:52 +00:00
..
addr2line cmd/addr2line: simplify windows test 2015-06-17 14:23:20 +00:00
api all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
asm cmd/internal/obj: add As type for assembly opcodes 2016-03-08 04:20:09 +00:00
cgo all: single space after period. 2016-03-02 00:13:47 +00:00
compile cmd/compile: fix bug in vmatch1 list traversal nodeSeq change 2016-03-08 20:00:03 +00:00
cover all: single space after period. 2016-03-02 00:13:47 +00:00
dist all: single space after period. 2016-03-02 00:13:47 +00:00
doc all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
fix all: single space after period. 2016-03-02 00:13:47 +00:00
go cmd/go: ignore C files when CGO_ENABLED=0 2016-03-08 20:10:52 +00:00
gofmt all: single space after period. 2016-03-02 00:13:47 +00:00
internal cmd/compile, cmd/link: eliminate string merging pass 2016-03-08 19:14:08 +00:00
link cmd/compile, cmd/link: eliminate string merging pass 2016-03-08 19:14:08 +00:00
nm all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
objdump cmd/objdump: skip TestDisasm* for mips64{,le} 2015-09-10 18:27:09 +00:00
pack all: extract "can I exec?" check from tests into internal/testenv 2015-06-16 18:07:36 +00:00
pprof all: single space after period. 2016-03-02 00:13:47 +00:00
trace all: make copyright headers consistent with one space after period 2016-03-01 23:34:33 +00:00
vet cmd/vet: remove -test flag 2016-03-07 22:54:38 +00:00
yacc Rewrite leftover references to plan9.bell-labs.com to 9p.io. 2016-03-06 07:07:01 +00:00