From ffce4334e4f218f9bcbf97620f1cf6cae3764b30 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 15 Sep 2017 15:15:31 +0200 Subject: [PATCH] Disable AVX512 on MingW for now --- configure.ac | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 4bac45fb..b631e1cf 100644 --- a/configure.ac +++ b/configure.ac @@ -242,6 +242,13 @@ AS_CASE([$host_os], 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_CASE([$host_os], @@ -449,7 +456,7 @@ return _mm256_movemask_ps(_mm256_cmp_ps(x, y, _CMP_NEQ_OQ)); oldcflags="$CFLAGS" AX_CHECK_COMPILE_FLAG([-mavx512f], [CFLAGS="$CFLAGS -mavx512f"]) AC_MSG_CHECKING(for AVX512F instructions set) - AC_LINK_IFELSE([AC_LANG_PROGRAM([[ + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ #ifdef __native_client__ # error NativeClient detected - Avoiding AVX512F opcodes #endif