]> Cypherpunks repositories - gostls13.git/commit
[dev.cc] cmd/cgo: generate only Go source files
authorRuss Cox <rsc@golang.org>
Tue, 11 Nov 2014 06:23:19 +0000 (01:23 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 11 Nov 2014 06:23:19 +0000 (01:23 -0500)
commit25f9f5d0827484ac1fe20a55fdb4c75350999d80
tree62cc39c6ec70080297242fd434da0fb75a347301
parent33e910296e52309d2ef66add9f32723c8ab678bc
[dev.cc] cmd/cgo: generate only Go source files

[This CL is part of the removal of C code from package runtime.
See golang.org/s/dev.cc for an overview.]

We changed cgo to write the actual function wrappers in Go
for Go 1.4. The only code left in C output files was the definitions
for pointers to C data and the #pragma cgo directives.
Write both of those to Go outputs instead, using the new
compiler directives introduced in CL 169360043.

(Still generating C files in gccgo mode.)

LGTM=r
R=r
CC=austin, golang-codereviews, iant, khr
https://golang.org/cl/169330045
src/cmd/cgo/main.go
src/cmd/cgo/out.go