diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2019-10-15 20:20:49 +0200 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2019-10-15 11:20:49 -0700 |
commit | d33b0ffc50248ee1c099875830838b41e2d4ad12 (patch) | |
tree | 6c4ab40d3ff2eeda01615a815b72728764ec2182 /share | |
parent | 41e7e5693e86dba94ed4237a3962c311887aa5a8 (diff) | |
download | spack-d33b0ffc50248ee1c099875830838b41e2d4ad12.tar.gz spack-d33b0ffc50248ee1c099875830838b41e2d4ad12.tar.bz2 spack-d33b0ffc50248ee1c099875830838b41e2d4ad12.tar.xz spack-d33b0ffc50248ee1c099875830838b41e2d4ad12.zip |
lmod: module files are written in a root folder named by target family (#13121)
fixes #13005
This commit fixes an issue with the name of the root directory for
module file hierarchies. Since #3206 the root folder was named after
the microarchitecture used for the spec, which is too specific and
not backward compatible for lmod hierarchies. Here we compute the
root folder name using the target family instead of the target name
itself and we add target information in the 'whatis' portion of the
module file.
Diffstat (limited to 'share')
-rw-r--r-- | share/spack/templates/modules/modulefile.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/share/spack/templates/modules/modulefile.lua b/share/spack/templates/modules/modulefile.lua index a8eae9bef1..2149c8bfaf 100644 --- a/share/spack/templates/modules/modulefile.lua +++ b/share/spack/templates/modules/modulefile.lua @@ -8,6 +8,7 @@ {% if short_description %} whatis([[Name : {{ spec.name }}]]) whatis([[Version : {{ spec.version }}]]) +whatis([[Target : {{ spec.target }}]]) whatis([[Short description : {{ short_description }}]]) {% endif %} {% if configure_options %} |