diff options
author | becker33 <becker33@llnl.gov> | 2018-09-05 17:28:39 -0700 |
---|---|---|
committer | scheibelp <scheibel1@llnl.gov> | 2018-09-05 17:28:39 -0700 |
commit | f6fff8f3431144b4cccf8ab644cac711d9840650 (patch) | |
tree | be47c9dcb0fd96ffa8fa585969e76cc46a7ef159 /share | |
parent | a779e8744240c219e78ee5e8c468b68616451396 (diff) | |
download | spack-f6fff8f3431144b4cccf8ab644cac711d9840650.tar.gz spack-f6fff8f3431144b4cccf8ab644cac711d9840650.tar.bz2 spack-f6fff8f3431144b4cccf8ab644cac711d9840650.tar.xz spack-f6fff8f3431144b4cccf8ab644cac711d9840650.zip |
Spack environment updates take precedence (#9107)
Spack originally handled environment modifications in the following
order:
1. clear environment variables
(unless Spack was invoked with --dirty)
2. apply spack-specific environment variable updates,
including variables set by Spack core like CC/PKG_CONFIG_PATH
and those set by installed dependencies (e.g. in
setup_dependent_environment)
3. load all external/compiler modules
1 and 2 were done together. This splits 1 into its own function and
imposes the following order for environment modifications:
1. clear environment variables
2. load all external/compiler modules
3. apply spack-specific environment variable updates
As a result, prepend-path actions taken by Spack (or installed Spack
dependencies) take precedence over prepend-path actions from compiler
and external modules. Additionally, when Spack (or a package
dependency) sets/unsets an environment variable, that will override
the actions of external/compiler modules.
Diffstat (limited to 'share')
0 files changed, 0 insertions, 0 deletions