Skip to content

Commit

Permalink
Don't assume AVX if user specified their own CFLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
Albin Ahlbäck committed Nov 30, 2024
1 parent 2f4594b commit 41011f2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,13 @@ Please report at <https://github.com/flintlib/flint/issues/>])
;;
esac

if test "$cflags_set" = "yes";
then
# We cannot be sure that AVX2 and AVX512 are enabled.
have_avx2="no"
have_avx512="no"
fi

if test "$have_avx512" = "yes";
then
have_avx2="yes"
Expand Down Expand Up @@ -803,6 +810,13 @@ Please report at <https://github.com/flintlib/flint/issues/>])
;;
esac

if test "$cflags_set" = "yes";
then
# We cannot be sure that AVX2 and AVX512 are enabled.
have_avx2="no"
have_avx512="no"
fi

if test "$have_avx512" = "yes";
then
have_avx2="yes"
Expand Down

0 comments on commit 41011f2

Please sign in to comment.