aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2013-10-11 08:55:13 -0700
committerIan Lance Taylor <iant@golang.org>2013-10-11 08:55:13 -0700
commitdb3374e24de5844dad9c52620058259a95cc7481 (patch)
tree3ea65c354e08a65cf75311807dc05db665fc823a
parent7dba510c7b4110ddda93ce9829636e33411267e5 (diff)
downloadgo-db3374e24de5844dad9c52620058259a95cc7481.tar.gz
go-db3374e24de5844dad9c52620058259a95cc7481.zip
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
-rwxr-xr-xdoc/progs/run3
1 files changed, 3 insertions, 0 deletions
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