summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/build_environment.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/build_environment.py b/lib/spack/spack/build_environment.py
index 619877275d..501ace29b1 100644
--- a/lib/spack/spack/build_environment.py
+++ b/lib/spack/spack/build_environment.py
@@ -340,7 +340,7 @@ def set_build_environment_variables(pkg, env, dirty=False):
env.prepend_path('PKG_CONFIG_PATH', pcdir)
if pkg.architecture.target.module_name:
- load_module(pkg.spec.architecture.target.module_name)
+ load_module(pkg.architecture.target.module_name)
return env