Error out if +openmp used with OS X clang
This commit is contained in:
parent
f8c14e1d98
commit
83108f815c
@ -53,7 +53,11 @@ def install(self, spec, prefix):
|
|||||||
options = ['--prefix=%s' % prefix,
|
options = ['--prefix=%s' % prefix,
|
||||||
'--enable-shared',
|
'--enable-shared',
|
||||||
'--enable-threads']
|
'--enable-threads']
|
||||||
|
# Add support for OpenMP
|
||||||
if '+openmp' in spec:
|
if '+openmp' in spec:
|
||||||
|
# Note: Apple's Clang does not support OpenMP.
|
||||||
|
if spec.satisfies('%clang'):
|
||||||
|
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:
|
||||||
options.append("--disable-fortran")
|
options.append("--disable-fortran")
|
||||||
|
Loading…
Reference in New Issue
Block a user