Skip to content

Commit

Permalink
Merge pull request #2120 from albinahlback/fix_caching_autotools
Browse files Browse the repository at this point in the history
Don't assume AVX if user specified their own CFLAGS
  • Loading branch information
albinahlback authored Nov 30, 2024
2 parents 2f4594b + 41011f2 commit 692dd5c
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 692dd5c

Please sign in to comment.