]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo, cmd/go: remove #cgo directive parsing from cmd/cgo
authorAndrew Wilkins <axwalk@gmail.com>
Thu, 11 Apr 2013 04:41:54 +0000 (21:41 -0700)
committerRob Pike <r@golang.org>
Thu, 11 Apr 2013 04:41:54 +0000 (21:41 -0700)
commitd06be395cc8094b3cb132be238d745b668dbfa04
tree2d27b447ba27fbf2c9f02f46c3740bead99f1dce
parent082a4a8a47d03c5fd246b4d079391bdb21f2c3ed
cmd/cgo, cmd/go: remove #cgo directive parsing from cmd/cgo

This change removes processing of #cgo directives from cmd/cgo,
pushing the onus back on cmd/go to pass all necessary flags.

Fixes #5224. See comments for rationale.

R=golang-dev, iant, r
CC=golang-dev
https://golang.org/cl/8610044
misc/cgo/test/cflags.go [new file with mode: 0644]
misc/cgo/test/cgo_test.go
src/cmd/cgo/gcc.go
src/cmd/cgo/main.go
src/cmd/go/build.go
src/cmd/go/main.go