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 1ddb47a872..bcb410cf7d 100644 --- a/var/spack/repos/builtin/packages/intel-oneapi-compilers/package.py +++ b/var/spack/repos/builtin/packages/intel-oneapi-compilers/package.py @@ -130,10 +130,10 @@ def setup_run_environment(self, env): """ super(IntelOneapiCompilers, self).setup_run_environment(env) - env.set("CC", self.component_prefix.bin.icx) - env.set("CXX", self.component_prefix.bin.icpx) - env.set("F77", self.component_prefix.bin.ifx) - env.set("FC", self.component_prefix.bin.ifx) + env.set("CC", self.component_prefix.linux.bin.icx) + env.set("CXX", self.component_prefix.linux.bin.icpx) + env.set("F77", self.component_prefix.linux.bin.ifx) + env.set("FC", self.component_prefix.linux.bin.ifx) def install(self, spec, prefix): # Copy instead of install to speed up debugging