diff options
author | Axel Huebl <axel.huebl@plasma.ninja> | 2020-08-01 13:29:17 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-01 15:29:17 -0500 |
commit | 7498336f3d10a2bd866790a7ae98f28c1f715d07 (patch) | |
tree | 78e7bd990bb467647b54f2eb526eb9bf1b14e68b /var | |
parent | f3cb3a2eb8991cdfa131abcb429f13903911db1f (diff) | |
download | spack-7498336f3d10a2bd866790a7ae98f28c1f715d07.tar.gz spack-7498336f3d10a2bd866790a7ae98f28c1f715d07.tar.bz2 spack-7498336f3d10a2bd866790a7ae98f28c1f715d07.tar.xz spack-7498336f3d10a2bd866790a7ae98f28c1f715d07.zip |
Hotfix: move CUDAHOSTCXX (#17826)
* Hotfix: move CUDAHOSTCXX
Set only in dependent packages.
* dependent compiler
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/cuda/package.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/cuda/package.py b/var/spack/repos/builtin/packages/cuda/package.py index 300dda7b38..ff708f9a6c 100644 --- a/var/spack/repos/builtin/packages/cuda/package.py +++ b/var/spack/repos/builtin/packages/cuda/package.py @@ -80,15 +80,16 @@ class Cuda(Package): depends_on('libxml2', when='@10.1.243:') def setup_build_environment(self, env): - env.set('CUDAHOSTCXX', self.compiler.cxx) if self.spec.satisfies('@10.1.243:'): libxml2_home = self.spec['libxml2'].prefix env.set('LIBXML2HOME', libxml2_home) env.append_path('LD_LIBRARY_PATH', libxml2_home.lib) + def setup_dependent_build_environment(self, env, dependent_spec): + env.set('CUDAHOSTCXX', dependent_spec.package.compiler.cxx) + def setup_run_environment(self, env): env.set('CUDA_HOME', self.prefix) - env.set('CUDAHOSTCXX', self.compiler.cxx) def install(self, spec, prefix): if os.path.exists('/tmp/cuda-installer.log'): |