only fail when it is apples clang

This commit is contained in:
Patrick Gartung 2016-05-04 15:05:56 +02:00
parent 83108f815c
commit 7eb463a66e

View File

@ -57,6 +57,8 @@ def install(self, spec, prefix):
if '+openmp' in spec: if '+openmp' in spec:
# Note: Apple's Clang does not support OpenMP. # Note: Apple's Clang does not support OpenMP.
if spec.satisfies('%clang'): if spec.satisfies('%clang'):
ver = '%s' % self.compiler.version
if ver.endswith('-apple'):
raise InstallError("Apple's clang does not support OpenMP") raise InstallError("Apple's clang does not support OpenMP")
options.append('--enable-openmp') options.append('--enable-openmp')
if not self.compiler.f77 or not self.compiler.fc: if not self.compiler.f77 or not self.compiler.fc: