diff options
| author | Christoph Berg <myon@debian.org> | 2026-10-14 14:39:20 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-10-14 14:39:20 +0200 |
| commit | c576a4281ef8c87990ae6399393a827dfaccacd5 (patch) | |
| tree | 0f28b7d1fc2ba73ccea5d7513281b0f8cae76fb6 /.github/scripts/build-fftw-macos.sh | |
| parent | ffc62c792c9a5196cb4ce7a353287dfe20db6524 (diff) | |
New upstream version 3.3.0~beta2+dfsgupstream/3.3.0_beta2+dfsgupstream
Diffstat (limited to '.github/scripts/build-fftw-macos.sh')
| -rwxr-xr-x | .github/scripts/build-fftw-macos.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/.github/scripts/build-fftw-macos.sh b/.github/scripts/build-fftw-macos.sh index cbaf0291..00c24a40 100755 --- a/.github/scripts/build-fftw-macos.sh +++ b/.github/scripts/build-fftw-macos.sh @@ -10,6 +10,20 @@ version="$1" deployment_target="$2" prefix="$3" +architecture="${ARCH:-$(uname -m)}" +case "$architecture" in + x86_64) + simd_flags=(--enable-sse2 --enable-avx) + ;; + arm64) + simd_flags=(--enable-neon) + ;; + *) + echo "Unsupported macOS architecture: $architecture" >&2 + exit 2 + ;; +esac + curl -L --fail --retry 5 --retry-delay 10 -o fftw.tar.gz "https://www.fftw.org/fftw-${version}.tar.gz" tar -xzf fftw.tar.gz cd "fftw-${version}" @@ -19,6 +33,7 @@ cd "fftw-${version}" --enable-single \ --enable-threads \ --enable-shared --disable-static \ + "${simd_flags[@]}" \ CFLAGS="-O3 -mmacosx-version-min=${deployment_target}" \ LDFLAGS="-mmacosx-version-min=${deployment_target}" make -j"$(sysctl -n hw.ncpu)" |
