diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/docs/module_file_support.rst | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/spack/docs/module_file_support.rst b/lib/spack/docs/module_file_support.rst index e644b3625f..32e03f546f 100644 --- a/lib/spack/docs/module_file_support.rst +++ b/lib/spack/docs/module_file_support.rst @@ -618,7 +618,21 @@ activated using ``spack activate``: The configuration file above will produce module files that will load their direct dependencies if the package installed depends on ``python``. The allowed values for the ``autoload`` statement are either ``none``, -``direct`` or ``all``. +``direct`` or ``all``. The default is ``none``. + +.. tip:: + Building external software + Setting ``autoload`` to ``direct`` for all packages can be useful + when building software outside of a Spack installation that depends on + artifacts in that installation. E.g. (adjust ``lmod`` vs ``tcl`` + as appropriate): + + .. code-block:: yaml + + modules: + lmod: + all: + autoload: 'direct' .. note:: TCL prerequisites |