From: Ian Lance Taylor Date: Fri, 11 Oct 2013 15:55:13 +0000 (-0700) Subject: doc/progs: don't try building cgo tests if CGO_ENABLED=0 X-Git-Tag: go1.2rc2~33 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=db3374e24de5844dad9c52620058259a95cc7481;p=gostls13.git doc/progs: don't try building cgo tests if CGO_ENABLED=0 R=golang-dev, jsing, r CC=golang-dev https://golang.org/cl/14523056 --- diff --git a/doc/progs/run b/doc/progs/run index 71759c565e..6e680b83bf 100755 --- a/doc/progs/run +++ b/doc/progs/run @@ -50,6 +50,9 @@ fi if [ "$goos" == "openbsd" ]; then c_go_cgo="cgo1 cgo2" fi +if [ "$CGO_ENABLED" != 1 ]; then + c_go_cgo="" +fi timeout=" timeout1