Skip to content

Commit

Permalink
fftw: remove options.
Browse files Browse the repository at this point in the history
See Homebrew#31510.

Closes Homebrew#36265.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
MikeMcQuaid authored and niheaven committed Jan 23, 2019
1 parent bd9d93e commit 092c553
Showing 1 changed file with 12 additions and 19 deletions.
31 changes: 12 additions & 19 deletions Formula/fftw.rb
Expand Up @@ -12,29 +12,22 @@ class Fftw < Formula
sha256 "a94c5f646948f918e986ab0be56672ac52f527debe1ed4cc783fd1ba6c99fe73" => :el_capitan
end

option "with-mpi", "Enable MPI parallel transforms"
option "with-openmp", "Enable OpenMP parallel transforms"
option "without-fortran", "Disable Fortran bindings"
depends_on "gcc"
depends_on "open-mpi"

depends_on "gcc" if build.with?("fortran") || build.with?("openmp")

depends_on "open-mpi" if build.with? "mpi"

fails_with :clang if build.with? "openmp"
fails_with :clang

def install
args = ["--enable-shared",
"--disable-debug",
"--prefix=#{prefix}",
"--enable-threads",
"--disable-dependency-tracking"]
args = [
"--enable-shared",
"--disable-debug",
"--prefix=#{prefix}",
"--enable-threads",
"--disable-dependency-tracking",
"--enable-mpi",
"--enable-openmp",
]
simd_args = ["--enable-sse2"]
simd_args << "--enable-avx" if ENV.compiler == :clang && Hardware::CPU.avx? && !build.bottle?
simd_args << "--enable-avx2" if ENV.compiler == :clang && Hardware::CPU.avx2? && !build.bottle?

args << "--disable-fortran" if build.without? "fortran"
args << "--enable-mpi" if build.with? "mpi"
args << "--enable-openmp" if build.with? "openmp"

# single precision
# enable-sse2, enable-avx and enable-avx2 work for both single and double precision
Expand Down

0 comments on commit 092c553

Please sign in to comment.