diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2023-07-04 03:48:56 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-04 10:48:56 +0200 |
commit | e9dc6dc96cf4aa912dcff12413c10e51f73631cb (patch) | |
tree | 21f20dbe2bf12fe35d1aa9fa14d78f19a8840ad2 /share | |
parent | 5588b93683912dad0522c7bbbe547372c66e22d8 (diff) | |
download | spack-e9dc6dc96cf4aa912dcff12413c10e51f73631cb.tar.gz spack-e9dc6dc96cf4aa912dcff12413c10e51f73631cb.tar.bz2 spack-e9dc6dc96cf4aa912dcff12413c10e51f73631cb.tar.xz spack-e9dc6dc96cf4aa912dcff12413c10e51f73631cb.zip |
Fix DYLD_* propagation to Python process from fish shell (#38615)
Diffstat (limited to 'share')
-rwxr-xr-x | share/spack/setup-env.fish | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/share/spack/setup-env.fish b/share/spack/setup-env.fish index e00d8e76bb..901ffe129f 100755 --- a/share/spack/setup-env.fish +++ b/share/spack/setup-env.fish @@ -372,7 +372,14 @@ end function spack_runner -d "Runner function for the `spack` wrapper" - + # Store DYLD_* variables from spack shell function + # This is necessary because MacOS System Integrity Protection clears + # variables that affect dyld on process start. + for var in DYLD_LIBRARY_PATH DYLD_FALLBACK_LIBRARY_PATH + if set -q $var + set -gx SPACK_$var $$var + end + end # # Accumulate initial flags for main spack command |