Skip to content

Commit dd79669

Browse files
authored
Comment on the need for CGO_ENABLED=1 to support cross-compilation (#3735)
1 parent 8f34860 commit dd79669

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scripts/constants.sh

+1-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ fi
2727
# We use "export" here instead of just setting a bash variable because we need
2828
# to pass this flag to all child processes spawned by the shell.
2929
export CGO_CFLAGS="-O2 -D__BLST_PORTABLE__"
30-
# While CGO_ENABLED doesn't need to be explicitly set, it produces a much more
31-
# clear error due to the default value change in go1.20.
32-
export CGO_ENABLED=1
30+
export CGO_ENABLED=1 # Required for cross-compilation
3331

3432
# Disable version control fallbacks
3533
export GOPROXY="https://proxy.golang.org"

0 commit comments

Comments
 (0)