Use #error in autoconf tests
This commit is contained in:
parent
147d8b6205
commit
1f8056ab11
@ -274,7 +274,7 @@ AX_CHECK_COMPILE_FLAG([$CWFLAGS -Wextra], [CWFLAGS="$CWFLAGS -Wextra"])
|
|||||||
AC_MSG_CHECKING(for clang)
|
AC_MSG_CHECKING(for clang)
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
|
||||||
#ifndef __clang__
|
#ifndef __clang__
|
||||||
be sad
|
#error Not clang
|
||||||
#endif
|
#endif
|
||||||
]])],
|
]])],
|
||||||
[AC_MSG_RESULT(yes)
|
[AC_MSG_RESULT(yes)
|
||||||
@ -312,7 +312,7 @@ AX_CHECK_LINK_FLAG([-Wl,-z,noexecstack], [LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"]
|
|||||||
AC_MSG_CHECKING(for a broken clang + AVX512 combination)
|
AC_MSG_CHECKING(for a broken clang + AVX512 combination)
|
||||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
|
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[
|
||||||
#if !(defined(__AVX512F__) && defined(__clang__) && __clang_major__ < 4)
|
#if !(defined(__AVX512F__) && defined(__clang__) && __clang_major__ < 4)
|
||||||
Not a broken clang + AVX512 combination
|
#error Not a broken clang + AVX512 combination
|
||||||
#endif
|
#endif
|
||||||
]])],
|
]])],
|
||||||
[AC_MSG_RESULT(yes - disabling AVX512 optimizations)
|
[AC_MSG_RESULT(yes - disabling AVX512 optimizations)
|
||||||
|
Loading…
Reference in New Issue
Block a user