Toolchain: add --enable-sse2 option for fftw with target-cpu=native

This commit is contained in:
he-zilong 2026-01-27 12:22:08 +08:00 committed by Ole Schütt
parent 6b5fb56659
commit c043a46d7e

View file

@ -52,6 +52,7 @@ case "$with_fftw" in
grep '\bavx\b' /proc/cpuinfo 1> /dev/null && FFTW_FLAGS="${FFTW_FLAGS} --enable-avx"
grep '\bavx2\b' /proc/cpuinfo 1> /dev/null && FFTW_FLAGS="${FFTW_FLAGS} --enable-avx2"
grep '\bavx512f\b' /proc/cpuinfo 1> /dev/null && FFTW_FLAGS="${FFTW_FLAGS} --enable-avx512"
grep '\bsse2\b' /proc/cpuinfo 1> /dev/null && FFTW_FLAGS="${FFTW_FLAGS} --enable-sse2"
fi
fi
./configure CFLAGS="${CFLAGS} -std=c17" \