Use no mangling for all spack compiler definitions that use the XL (#8392)

Fortran compiler.
Clang can build with IBM XL Fortran compiler as well, so the name
mangling shoud be avoided for that case as well.
This commit is contained in:
Dan FitzGerald 2018-06-14 23:46:09 -04:00 committed by Todd Gamblin
parent a67b2e2942
commit 64d20a3955

View File

@ -91,7 +91,8 @@ def install(self, spec, prefix):
'INCLUDEDIR = $(SuperLUroot)/include',
'LOADOPTS =',
'CDEFS = %s' % ("-DNoChange"
if '%xl' in spec or '%xl_r' in spec
if spack_f77.endswith('xlf') or
spack_f77.endswith('xlf_r')
else "-DAdd_")
])