Skip to content

Commit e87d71c

Browse files
committed
ask for c compiler when building
1 parent 2f3ceed commit e87d71c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/build.sh

+6
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ else
1515
OUTPUT=$1
1616
fi
1717

18+
# Check for CGO_ENABLED
19+
if [[ $(go env CGO_ENABLED) = 0 ]]; then
20+
echo "must have installed gcc (linux), clang (macos), or have set CC to an appropriate C compiler"
21+
exit 1
22+
fi
23+
1824
# Set the CGO flags to use the portable version of BLST
1925
#
2026
# We use "export" here instead of just setting a bash variable because we need

0 commit comments

Comments
 (0)