pexsi: add openmp flags to fortran flags if dependencies use OpenMP (#19274)
Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
parent
a9dfa89c89
commit
9a554769a3
@ -62,14 +62,15 @@ def edit(self, spec, prefix):
|
|||||||
('@STDCXX_LIB', ' '.join(self.compiler.stdcxx_libs))
|
('@STDCXX_LIB', ' '.join(self.compiler.stdcxx_libs))
|
||||||
]
|
]
|
||||||
|
|
||||||
|
fldflags = ''
|
||||||
if '@0.9.2' in self.spec:
|
if '@0.9.2' in self.spec:
|
||||||
substitutions.append(
|
fldflags += ' -Wl,--allow-multiple-definition'
|
||||||
('@FLDFLAGS', '-Wl,--allow-multiple-definition')
|
|
||||||
)
|
if ('^superlu +openmp' in self.spec
|
||||||
else:
|
or '^openblas threads=openmp' in self.spec):
|
||||||
substitutions.append(
|
fldflags += ' ' + self.compiler.openmp_flag
|
||||||
('@FLDFLAGS', '')
|
|
||||||
)
|
substitutions.append(('@FLDFLAGS', fldflags.lstrip()))
|
||||||
|
|
||||||
template = join_path(
|
template = join_path(
|
||||||
os.path.dirname(inspect.getmodule(self).__file__),
|
os.path.dirname(inspect.getmodule(self).__file__),
|
||||||
|
Loading…
Reference in New Issue
Block a user