fftw: remove options.
See https://github.com/Homebrew/homebrew-core/issues/31510. Closes #36265. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
9a33f559ea
commit
1876556952
1 changed files with 12 additions and 19 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue