commit
dd5b1ac098
4 changed files with 6 additions and 0 deletions
1
lib/spack/env/cray/CC
vendored
Symbolic link
1
lib/spack/env/cray/CC
vendored
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../cc
|
1
lib/spack/env/cray/cc
vendored
Symbolic link
1
lib/spack/env/cray/cc
vendored
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../cc
|
1
lib/spack/env/cray/ftn
vendored
Symbolic link
1
lib/spack/env/cray/ftn
vendored
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../cc
|
|
@ -1,8 +1,10 @@
|
||||||
import os
|
import os
|
||||||
|
import spack
|
||||||
from spack.architecture import Platform, Target
|
from spack.architecture import Platform, Target
|
||||||
from spack.operating_systems.linux_distro import LinuxDistro
|
from spack.operating_systems.linux_distro import LinuxDistro
|
||||||
from spack.operating_systems.cnl import Cnl
|
from spack.operating_systems.cnl import Cnl
|
||||||
from spack.util.executable import which
|
from spack.util.executable import which
|
||||||
|
from llnl.util.filesystem import join_path
|
||||||
|
|
||||||
|
|
||||||
class CrayXc(Platform):
|
class CrayXc(Platform):
|
||||||
|
@ -53,6 +55,7 @@ def setup_platform_environment(self, pkg, env):
|
||||||
cray_wrapper_names = join_path(spack.build_env_path, 'cray')
|
cray_wrapper_names = join_path(spack.build_env_path, 'cray')
|
||||||
if os.path.isdir(cray_wrapper_names):
|
if os.path.isdir(cray_wrapper_names):
|
||||||
env.prepend_path('PATH', cray_wrapper_names)
|
env.prepend_path('PATH', cray_wrapper_names)
|
||||||
|
env.prepend_path('SPACK_ENV_PATHS', cray_wrapper_names)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def detect(self):
|
def detect(self):
|
||||||
|
|
Loading…
Reference in a new issue