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:
Dan FitzGerald 2018-06-14 23:45:21 -04:00 committed by Todd Gamblin
parent 98d8bdebbe
commit a67b2e2942

View File

@ -120,7 +120,7 @@ def install(self, spec, prefix):
elif '%pgi' in spec: elif '%pgi' in spec:
make_args += ['CFLAGS+=--exceptions'] 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'] make_args += ['CFLAGS+=-DBLAS_NO_UNDERSCORE']
# Intel TBB in SuiteSparseQR # Intel TBB in SuiteSparseQR