Skip to content

Commit

Permalink
Merge pull request #689 from ava-labs/require-c-compiler-on-build
Browse files Browse the repository at this point in the history
ask for c compiler when building
  • Loading branch information
felipemadero authored Dec 4, 2023
2 parents 2f3ceed + e87d71c commit eba8fd4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ else
OUTPUT=$1
fi

# Check for CGO_ENABLED
if [[ $(go env CGO_ENABLED) = 0 ]]; then
echo "must have installed gcc (linux), clang (macos), or have set CC to an appropriate C compiler"
exit 1
fi

# Set the CGO flags to use the portable version of BLST
#
# We use "export" here instead of just setting a bash variable because we need
Expand Down

0 comments on commit eba8fd4

Please sign in to comment.