Skip to content
Snippets Groups Projects
Commit 7eb463a6 authored by Patrick Gartung's avatar Patrick Gartung
Browse files

only fail when it is apples clang

parent 83108f81
Branches
No related tags found
No related merge requests found
...@@ -57,6 +57,8 @@ def install(self, spec, prefix): ...@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment