summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorDan FitzGerald <38731008+djfitzgerald@users.noreply.github.com>2018-06-14 23:46:09 -0400
committerTodd Gamblin <tgamblin@llnl.gov>2018-06-14 20:46:09 -0700
commit64d20a3955df8cd692b52579a91de416e2649c4b (patch)
tree4cd7894ca15d40c42842f6bb7c03af7116f6282d /var
parenta67b2e2942bf8cbd3322cc699dd3da131b6ee30a (diff)
downloadspack-64d20a3955df8cd692b52579a91de416e2649c4b.tar.gz
spack-64d20a3955df8cd692b52579a91de416e2649c4b.tar.bz2
spack-64d20a3955df8cd692b52579a91de416e2649c4b.tar.xz
spack-64d20a3955df8cd692b52579a91de416e2649c4b.zip
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.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/superlu-dist/package.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/superlu-dist/package.py b/var/spack/repos/builtin/packages/superlu-dist/package.py
index 396f2f091d..51c156047f 100644
--- a/var/spack/repos/builtin/packages/superlu-dist/package.py
+++ b/var/spack/repos/builtin/packages/superlu-dist/package.py
@@ -91,7 +91,8 @@ class SuperluDist(Package):
'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_")
])