diff options
author | Pramod S Kumbhar <pramod.r.s.kumbhar@gmail.com> | 2017-09-11 01:15:12 +0200 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2017-09-10 13:15:12 -1000 |
commit | f5f51118b8469b1d37ad6c381394e8c497db3be3 (patch) | |
tree | 87773d977e4d23a3a56135ddf0bb340cc6af9aa9 | |
parent | b14b02f875a4844e37139bb091c960d680931b05 (diff) | |
download | spack-f5f51118b8469b1d37ad6c381394e8c497db3be3.tar.gz spack-f5f51118b8469b1d37ad6c381394e8c497db3be3.tar.bz2 spack-f5f51118b8469b1d37ad6c381394e8c497db3be3.tar.xz spack-f5f51118b8469b1d37ad6c381394e8c497db3be3.zip |
Fix matplotlib build issue with intel compiler (#5321)
-rw-r--r-- | var/spack/repos/builtin/packages/py-matplotlib/package.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-matplotlib/package.py b/var/spack/repos/builtin/packages/py-matplotlib/package.py index 2359bb5f27..c26831fd48 100644 --- a/var/spack/repos/builtin/packages/py-matplotlib/package.py +++ b/var/spack/repos/builtin/packages/py-matplotlib/package.py @@ -103,6 +103,11 @@ class PyMatplotlib(PythonPackage): # depends_on('ttconv') depends_on('py-six@1.9.0:', type=('build', 'run')) + @run_before('build') + def set_cc(self): + if self.spec.satisfies('%intel'): + env['CC'] = spack_cxx + @run_after('install') def set_backend(self): spec = self.spec |