diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/fftw.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Library/Formula/fftw.rb b/Library/Formula/fftw.rb index 8db7679fa..e1b9bf677 100644 --- a/Library/Formula/fftw.rb +++ b/Library/Formula/fftw.rb @@ -15,22 +15,22 @@ class Fftw < Formula "--prefix=#{prefix}", "--enable-threads", "--disable-dependency-tracking"] + simd_args = ["--enable-sse2"] + simd_args << "--enable-avx" if ENV.compiler == :clang and Hardware::CPU.avx? and !build.bottle? args << "--disable-fortran" unless build.with? "fortran" # single precision - # enable-sse only works with single - system "./configure", "--enable-single", - "--enable-sse", - *args + # enable-sse2 and enable-avx works for both single and double precision + system "./configure", "--enable-single", *(args + simd_args) system "make install" # clean up so we can compile the double precision variant system "make clean" # double precision - # enable-sse2 only works with double precision (default) - system "./configure", "--enable-sse2", *args + # enable-sse2 and enable-avx works for both single and double precision + system "./configure", *(args + simd_args) system "make install" # clean up so we can compile the long-double precision variant |
