Skip to content

Commit

Permalink
Comment on the need for CGO_ENABLED=1 to support cross-compilation (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
maru-ava authored Feb 21, 2025
1 parent 8f34860 commit dd79669
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/constants.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ fi
# We use "export" here instead of just setting a bash variable because we need
# to pass this flag to all child processes spawned by the shell.
export CGO_CFLAGS="-O2 -D__BLST_PORTABLE__"
# While CGO_ENABLED doesn't need to be explicitly set, it produces a much more
# clear error due to the default value change in go1.20.
export CGO_ENABLED=1
export CGO_ENABLED=1 # Required for cross-compilation

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

0 comments on commit dd79669

Please sign in to comment.