Branch: refs/heads/master
Revision: e02dbf3
Author: ronawho
Log Message:
Merge pull request #16234 from ronawho/make-modulefile-lmod-compat
Make our modulefile compatible with Lmod
[reviewed by @e-kayrakli and @gbtitus]
This fixes our modulefile for when mpich and/or a PrgEnv aren’t loaded
under Lmod. In the Lmod system you can’t read an unset environment
variable so you have to ensure it’s set before reading it.
Additionally, when TCL is converted to Lua the module commands are no
longer evaluated before set/test commands so you can’t load a module and
then use an env var set by that module. Adapt to those limitations here.
See https://lmod.readthedocs.io/en/latest/095_tcl2lua.html for more
info.
Part of https://github.com/Cray/chapel-private/issues/1220
Modified Files:
M util/build_configs/cray-internal/generate-modulefile.bash
Compare: https://github.com/chapel-lang/chapel/compare/1c3b5d1ce427...e02dbf36fa04