only fail when it is apples clang
This commit is contained in:
parent
83108f815c
commit
7eb463a66e
@ -57,6 +57,8 @@ def install(self, spec, prefix):
|
||||
if '+openmp' in spec:
|
||||
# Note: Apple's Clang does not support OpenMP.
|
||||
if spec.satisfies('%clang'):
|
||||
ver = '%s' % self.compiler.version
|
||||
if ver.endswith('-apple'):
|
||||
raise InstallError("Apple's clang does not support OpenMP")
|
||||
options.append('--enable-openmp')
|
||||
if not self.compiler.f77 or not self.compiler.fc:
|
||||
|
Loading…
Reference in New Issue
Block a user