cross compile

This commit is contained in:
edoapra 2022-11-06 17:11:30 -08:00
parent a35a52eb76
commit 313b380fde
No known key found for this signature in database
GPG key ID: 48E12DA1EDE9E1B0

View file

@ -158,6 +158,10 @@ if [[ "$FORCETARGET" == *"SKYLAKEX"* ]]; then
exit 1
fi
fi
# cross compilation
if [[ "${GOTMINGW64}" == "1" ]]; then
FORCETARGET+=HOSTCC=\"gcc\"
fi
#this fixes avx512 detection for icc
if [[ "${CC}" == "icc" ]]; then
FORCETARGET+=HOSTCC=\"icc -xhost\"