Skip to content

Commit

Permalink
Revert "darwin/build: Disallow CGO_ENABLED=1 when cross-compiling"
Browse files Browse the repository at this point in the history
This reverts commit 6a2fc91.
  • Loading branch information
vvoland committed Apr 10, 2024
1 parent cb9c97d commit d5436c0
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions scripts/build/.variables
Expand Up @@ -44,16 +44,6 @@ if [ "${GOOS}" = "windows" ]; then
fi
export TARGET

# No CGO when cross building to darwin
if [ "$(go env GOOS)" = "darwin" ] && [ "$(uname)" != "Darwin" ]; then
if [ -z "$CGO_ENABLED" ]; then
CGO_ENABLED=0
elif [ "$CGO_ENABLED" = "1" ]; then
echo "CGO_ENABLED=1 not supported when cross-compiling for Darwin"
exit 1
fi
fi

if [ -z "$CGO_ENABLED" ]; then
case "$(go env GOOS)" in
linux)
Expand Down

0 comments on commit d5436c0

Please sign in to comment.