]> Cypherpunks repositories - gostls13.git/commitdiff
doc/progs: don't try building cgo tests if CGO_ENABLED=0
authorIan Lance Taylor <iant@golang.org>
Fri, 11 Oct 2013 15:55:13 +0000 (08:55 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 11 Oct 2013 15:55:13 +0000 (08:55 -0700)
R=golang-dev, jsing, r
CC=golang-dev
https://golang.org/cl/14523056

doc/progs/run

index 71759c565ebe7e3f2c5603ba1fc8319aa7594cd7..6e680b83bfd30880589177cb571ef4d3af77cff8 100755 (executable)
@@ -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