summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMario Melara <maamelara@gmail.com>2016-02-17 14:45:53 -0800
committerMario Melara <maamelara@gmail.com>2016-02-17 14:45:53 -0800
commit2c20fc2ebf8e9b360f3935a1867d9b95c69513ac (patch)
treeb67848eabed6223134606080025f7be5131ccc3a /lib
parent2a79537ba1120620f79d39bd4081a6a11b7862c4 (diff)
downloadspack-2c20fc2ebf8e9b360f3935a1867d9b95c69513ac.tar.gz
spack-2c20fc2ebf8e9b360f3935a1867d9b95c69513ac.tar.bz2
spack-2c20fc2ebf8e9b360f3935a1867d9b95c69513ac.tar.xz
spack-2c20fc2ebf8e9b360f3935a1867d9b95c69513ac.zip
Changed module loading to use arch tuple instead of regular target.module
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/build_environment.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/build_environment.py b/lib/spack/spack/build_environment.py
index d849b4b56c..6e03394777 100644
--- a/lib/spack/spack/build_environment.py
+++ b/lib/spack/spack/build_environment.py
@@ -226,8 +226,8 @@ def set_build_environment_variables(pkg):
pkg_config_dirs.append(pcdir)
path_put_first("PKG_CONFIG_PATH", pkg_config_dirs)
- if pkg.spec.target.module_name:
- load_module(pkg.spec.target.module_name)
+ if pkg.spec.architecture.target.module_name:
+ load_module(pkg.spec.architecture.target.module_name)
def set_module_variables_for_package(pkg):
"""Populate the module scope of install() with some useful functions.