Use the name of the Fortran compiler to determine what name mangling (#8393)
setting to use, instead of the spack compiler. %clang can use multiple Fortran compilers with different options, so we need to know what compiler is used in order to provide the correct options.
This commit is contained in:
parent
98d8bdebbe
commit
a67b2e2942
@ -120,7 +120,7 @@ def install(self, spec, prefix):
|
||||
elif '%pgi' in spec:
|
||||
make_args += ['CFLAGS+=--exceptions']
|
||||
|
||||
if '%xl' in spec or '%xl_r' in spec:
|
||||
if spack_f77.endswith('xlf') or spack_f77.endswith('xlf_r'):
|
||||
make_args += ['CFLAGS+=-DBLAS_NO_UNDERSCORE']
|
||||
|
||||
# Intel TBB in SuiteSparseQR
|
||||
|
Loading…
Reference in New Issue
Block a user