Skip to content

Commit 7d651ac

Browse files
maru-avarichardpringle
authored andcommitted
Comment on the need for CGO_ENABLED=1 to support cross-compilation (#3735)
1 parent a4a885f commit 7d651ac

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scripts/constants.sh

Lines changed: 1 addition & 3 deletions
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)