Disable AVX512 on MingW for now

This commit is contained in:
Frank Denis 2017-09-15 15:15:31 +02:00
parent 07de00bc9a
commit ffce4334e4

View File

@ -242,6 +242,13 @@ AS_CASE([$host_os],
AX_CHECK_LINK_FLAG([-Wl,--nxcompat], [LDFLAGS="$LDFLAGS -Wl,--nxcompat"]) AX_CHECK_LINK_FLAG([-Wl,--nxcompat], [LDFLAGS="$LDFLAGS -Wl,--nxcompat"])
]) ])
AS_CASE([$host_os],
[cygwin*|mingw*|msys|pw32*|cegcc*], [
AX_CHECK_COMPILE_FLAG([-mno-avx512f], [
[CFLAGS="$CFLAGS -mno-avx512f"]
])
])
AS_IF([test "x$enable_ssp" != "xno"],[ AS_IF([test "x$enable_ssp" != "xno"],[
AS_CASE([$host_os], AS_CASE([$host_os],
@ -449,7 +456,7 @@ return _mm256_movemask_ps(_mm256_cmp_ps(x, y, _CMP_NEQ_OQ));
oldcflags="$CFLAGS" oldcflags="$CFLAGS"
AX_CHECK_COMPILE_FLAG([-mavx512f], [CFLAGS="$CFLAGS -mavx512f"]) AX_CHECK_COMPILE_FLAG([-mavx512f], [CFLAGS="$CFLAGS -mavx512f"])
AC_MSG_CHECKING(for AVX512F instructions set) AC_MSG_CHECKING(for AVX512F instructions set)
AC_LINK_IFELSE([AC_LANG_PROGRAM([[ AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#ifdef __native_client__ #ifdef __native_client__
# error NativeClient detected - Avoiding AVX512F opcodes # error NativeClient detected - Avoiding AVX512F opcodes
#endif #endif