From db3374e24de5844dad9c52620058259a95cc7481 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 11 Oct 2013 08:55:13 -0700 Subject: [PATCH] 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 --- doc/progs/run | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.50.0