]> Cypherpunks repositories - gostls13.git/commit
cgo: don't run cgo when not compiling
authorGustavo Niemeyer <gustavo@niemeyer.net>
Tue, 8 Feb 2011 20:40:11 +0000 (15:40 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 8 Feb 2011 20:40:11 +0000 (15:40 -0500)
commitb9183b986ad29266e686622ea7e93516fcfacf70
treeda13024eefb1c7a07e219b001b647f9bd11da9fd
parent1b8d373463194723e29ca261e39cf7c411770e7d
cgo: don't run cgo when not compiling

The logic introduced to avoid running cgo when
introducing _cgo_flags is faulty.  My goal was
to handle it with the following statement:

    -include _cgo_flags

The dash tells make to ignore errors if it can't
include the file.

What I missed, though, was the fact that it
*will* attempt to build the file if it knows
how.

This change will introduce the originally
intended semantics of not attempting to build
the file before necessary.

R=rsc
CC=golang-dev
https://golang.org/cl/4023069
src/Make.pkg