summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorDan FitzGerald <38731008+djfitzgerald@users.noreply.github.com>2018-06-14 23:45:21 -0400
committerTodd Gamblin <tgamblin@llnl.gov>2018-06-14 20:45:21 -0700
commita67b2e2942bf8cbd3322cc699dd3da131b6ee30a (patch)
treecb94522d1d8bef5430d43fe8945b460188a8f065 /var
parent98d8bdebbe9eebe6541fc9ff8e44a4486479b585 (diff)
downloadspack-a67b2e2942bf8cbd3322cc699dd3da131b6ee30a.tar.gz
spack-a67b2e2942bf8cbd3322cc699dd3da131b6ee30a.tar.bz2
spack-a67b2e2942bf8cbd3322cc699dd3da131b6ee30a.tar.xz
spack-a67b2e2942bf8cbd3322cc699dd3da131b6ee30a.zip
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.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/suite-sparse/package.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/suite-sparse/package.py b/var/spack/repos/builtin/packages/suite-sparse/package.py
index 6b22e76f0e..be52030057 100644
--- a/var/spack/repos/builtin/packages/suite-sparse/package.py
+++ b/var/spack/repos/builtin/packages/suite-sparse/package.py
@@ -120,7 +120,7 @@ class SuiteSparse(Package):
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