always define CC

This commit is contained in:
edoapra 2025-01-10 17:49:48 -08:00
parent 0da5c01b24
commit 5bbf802e21
No known key found for this signature in database
GPG key ID: 9E6A0B70826967BA

View file

@ -66,11 +66,11 @@ else
VEC=scalar
fi
echo VEC $VEC
if [[ "${VEC}" == "avx512" ]]; then
if [[ -z "${CC}" ]]; then
CC=cc
fi
echo CC is $CC
if [[ "${VEC}" == "avx512" ]]; then
GCC_EXTRA=$(echo $CC | cut -c 1-3)
if [ "$GCC_EXTRA" == gcc ]; then
let GCCVERSIONGT5=$(expr `${CC} -dumpversion | cut -f1 -d.` \> 5)