aboutsummaryrefslogtreecommitdiff
path: root/src/make.bash
diff options
context:
space:
mode:
Diffstat (limited to 'src/make.bash')
-rwxr-xr-xsrc/make.bash7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/make.bash b/src/make.bash
index 104c3ba5fb..c048717c62 100755
--- a/src/make.bash
+++ b/src/make.bash
@@ -106,6 +106,13 @@ if [ "$(uname -s)" == "GNU/kFreeBSD" ]; then
export CGO_ENABLED=0
fi
+# cgo is not generally supported on 1.4.
+# Disable unless explicitly requested.
+# See also https://github.com/Homebrew/homebrew-core/issues/18465.
+if [ "$CGO_ENABLED" == "" ]; then
+ export CGO_ENABLED=0
+fi
+
# Clean old generated file that will cause problems in the build.
rm -f ./runtime/runtime_defs.go