openblas: phase out :openmp

This commit is contained in:
FX Coudert 2018-01-13 17:44:34 +01:00
parent a65f96fc48
commit 6fd6e4293b

View file

@ -17,10 +17,11 @@ class Openblas < Formula
"macOS provides BLAS and LAPACK in the Accelerate framework"
option "with-openmp", "Enable parallel computations with OpenMP"
needs :openmp if build.with? "openmp"
depends_on "gcc" # for gfortran
fails_with :clang if build.with? "openmp"
def install
ENV["DYNAMIC_ARCH"] = "1" if build.bottle?
ENV["USE_OPENMP"] = "1" if build.with? "openmp"