summaryrefslogtreecommitdiff
path: root/lib/spack/spack/build_environment.py
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2020-08-11 10:11:01 +0200
committerGitHub <noreply@github.com>2020-08-11 10:11:01 +0200
commit6cda20472e7ed3c21ddb5e07207cbb91c64954e9 (patch)
tree1e583340c0da6a95f8fae428b9707120fa66138c /lib/spack/spack/build_environment.py
parentf0c0cd5c3f5ab649637d9418bf047f646fd8a791 (diff)
downloadspack-6cda20472e7ed3c21ddb5e07207cbb91c64954e9.tar.gz
spack-6cda20472e7ed3c21ddb5e07207cbb91c64954e9.tar.bz2
spack-6cda20472e7ed3c21ddb5e07207cbb91c64954e9.tar.xz
spack-6cda20472e7ed3c21ddb5e07207cbb91c64954e9.zip
Fix loading of compiler modules on CRAY (#17984)
The modifications in 193e8333fa23a2e9b44d44a80e153d9a27033860 introduced a bug in the loading of compiler modules, since a function that was expecting a list of string was just getting a string. This commit fixes the bug and adds an assertion to verify the prerequisite of the function.
Diffstat (limited to 'lib/spack/spack/build_environment.py')
-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 7206ddb247..4a57dde77b 100644
--- a/lib/spack/spack/build_environment.py
+++ b/lib/spack/spack/build_environment.py
@@ -642,7 +642,7 @@ def get_rpaths(pkg):
# Second module is our compiler mod name. We use that to get rpaths from
# module show output.
if pkg.compiler.modules and len(pkg.compiler.modules) > 1:
- rpaths.append(path_from_modules(pkg.compiler.modules[1]))
+ rpaths.append(path_from_modules([pkg.compiler.modules[1]]))
return list(dedupe(filter_system_paths(rpaths)))