]> Cypherpunks repositories - gostls13.git/commit
cgo: os/arch dependent #cgo directives
authorGustavo Niemeyer <gustavo@niemeyer.net>
Thu, 3 Feb 2011 18:51:47 +0000 (13:51 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 3 Feb 2011 18:51:47 +0000 (13:51 -0500)
commitab15a978fb9d5b9caa68b103377720c27b779468
tree9627f3ee2696659f8b5e244cc95dd55f31126f40
parent3f61184e1bec975b91ac17295695c5582d241c5e
cgo: os/arch dependent #cgo directives

This enables #cgo directives to contain a os/arch
specification which restricts the definition of
the given option to matching systems.

For example:

#cgo amd64 CFLAGS: -DAMD64=1
#cgo linux CFLAGS: -DLINUX=1
#cgo linux/amd64 CFLAGS: -DLINUX_ON_AMD64=1

R=rsc
CC=golang-dev
https://golang.org/cl/4121048
src/cmd/cgo/doc.go
src/cmd/cgo/gcc.go