summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/intel-oneapi-compilers/package.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/intel-oneapi-compilers/package.py b/var/spack/repos/builtin/packages/intel-oneapi-compilers/package.py
index 469b24941c..3a120b36df 100644
--- a/var/spack/repos/builtin/packages/intel-oneapi-compilers/package.py
+++ b/var/spack/repos/builtin/packages/intel-oneapi-compilers/package.py
@@ -60,3 +60,13 @@ class IntelOneapiCompilers(IntelOneApiPackage):
# Try to patch all files, patchelf will do nothing if
# file should not be patched
subprocess.call(['patchelf', '--set-rpath', rpath, file])
+
+ def setup_run_environment(self, env):
+ env.prepend_path('PATH', join_path(self.prefix,
+ 'compiler', 'latest', 'linux', 'bin'))
+ env.prepend_path('CPATH', join_path(self.prefix,
+ 'compiler', 'latest', 'linux', 'include'))
+ env.prepend_path('LIBRARY_PATH', join_path(self.prefix,
+ 'compiler', 'latest', 'linux', 'lib'))
+ env.prepend_path('LD_LIBRARY_PATH', join_path(self.prefix,
+ 'compiler', 'latest', 'linux', 'lib'))