Commit e3347219 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Don't use AX_EXT result for Intel compilers

It is probably the case that the -x<code> option from AX_CC_MAXOPT is sufficient to get AVX support
parent eaa5ae5a
...@@ -148,10 +148,14 @@ if test "$enable_opt" = "yes" ; then ...@@ -148,10 +148,14 @@ if test "$enable_opt" = "yes" ; then
ac_test_CFLAGS="yes" ac_test_CFLAGS="yes"
CFLAGS="$old_CFLAGS $CFLAGS" CFLAGS="$old_CFLAGS $CFLAGS"
# Check SSE & AVX support (some overlap with AX_CC_MAXOPT). # Check SSE & AVX support (some overlap with AX_CC_MAXOPT).
# Don't use the SIMD_FLAGS result with Intel compilers. The -x<code>
# value from AX_CC_MAXOPT should be sufficient.
AX_EXT AX_EXT
if test "$SIMD_FLAGS" != ""; then if test "$SIMD_FLAGS" != ""; then
CFLAGS="$CFLAGS $SIMD_FLAGS" if test "$ax_cv_c_compiler_vendor" != "intel"; then
CFLAGS="$CFLAGS $SIMD_FLAGS"
fi
fi fi
fi fi
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment