Quick fix for #3153 (#3822)

This commit is contained in:
Mario Melara 2017-04-14 07:56:51 -07:00 committed by Todd Gamblin
parent 91d82c44e6
commit 0405505e21

View file

@ -225,6 +225,9 @@ def set_compiler_environment_variables(pkg, env):
env.set('SPACK_COMPILER_SPEC', str(pkg.spec.compiler))
for mod in compiler.modules:
# Fixes issue https://github.com/LLNL/spack/issues/3153
if os.environ.get("CRAY_CPU_TARGET") == "mic-knl":
load_module("cce")
load_module(mod)
compiler.setup_custom_environment(pkg, env)