Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Enable CGO just for Linux builds
Browse files Browse the repository at this point in the history
  • Loading branch information
geauxvirtual committed Nov 19, 2015
1 parent 39fbbe5 commit 14f5dd5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,12 @@ echo
echo "**** Pulse Build ($GITVERSION) ****"
echo

# Disable CGO for builds
# Disable CGO for builds...unless Linux...because appc
export CGO_ENABLED=0
platform=$(uname)
if [[ $platform == "Linux" ]]; then
export CGO_ENABLED=1
fi

# Clean build bin dir
rm -rf $BINDIR/*
Expand Down

0 comments on commit 14f5dd5

Please sign in to comment.