Error out if +openmp used with OS X clang

This commit is contained in:
Patrick Gartung 2016-04-21 09:59:37 -05:00
parent f8c14e1d98
commit 83108f815c

View File

@ -53,7 +53,11 @@ def install(self, spec, prefix):
options = ['--prefix=%s' % prefix,
'--enable-shared',
'--enable-threads']
if '+openmp' in spec:
# Add support for OpenMP
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')
if not self.compiler.f77 or not self.compiler.fc:
options.append("--disable-fortran")