aboutsummaryrefslogtreecommitdiff
path: root/src/make.bat
diff options
context:
space:
mode:
Diffstat (limited to 'src/make.bat')
-rw-r--r--src/make.bat6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/make.bat b/src/make.bat
index fff1eb6011..9ad34784f9 100644
--- a/src/make.bat
+++ b/src/make.bat
@@ -37,6 +37,12 @@ setlocal
set GOBUILDFAIL=0
+:: cgo is not generally supported on 1.4.
+:: Disable unless explicitly requested.
+if not x%CGO_ENABLED%==x goto cgodone
+set CGO_ENABLED=0
+:cgodone
+
if exist make.bat goto ok
echo Must run make.bat from Go src directory.
goto fail