Skip to content

Commit

Permalink
Added cray wrapper names directory to spack_env_paths so the spack co…
Browse files Browse the repository at this point in the history
…mpiler wrapper will remove them from the environment (prevents hang)
  • Loading branch information
Gregory Becker committed Jul 21, 2016
1 parent 1544f98 commit bcbe9c0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/spack/spack/platforms/cray_xc.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import os
#import spack
import spack
from spack.architecture import Platform, Target
from spack.operating_systems.linux_distro import LinuxDistro
from spack.operating_systems.cnl import Cnl
from spack.util.executable import which
#from llnl.util.filesystem import join_path
from llnl.util.filesystem import join_path


class CrayXc(Platform):
Expand Down Expand Up @@ -52,9 +52,10 @@ def setup_platform_environment(self, pkg, env):
similar to linux/standard linker behavior
"""
env.set('CRAYPE_LINK_TYPE', 'dynamic')
# cray_wrapper_names = join_path(spack.build_env_path, 'cray')
# if os.path.isdir(cray_wrapper_names):
# env.prepend_path('PATH', cray_wrapper_names)
cray_wrapper_names = join_path(spack.build_env_path, 'cray')
if os.path.isdir(cray_wrapper_names):
env.prepend_path('PATH', cray_wrapper_names)
env.prepend_path('SPACK_ENV_PATHS', cray_wrapper_names)

@classmethod
def detect(self):
Expand Down

0 comments on commit bcbe9c0

Please sign in to comment.