summary refs log tree commit diff
path: root/gnu/packages/avahi.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2020-12-07 15:20:11 +0100
committerLudovic Courtès <ludo@gnu.org>2020-12-11 19:06:53 +0100
commitd20665ecbfe7278f550a1ed4cd76565013feab59 (patch)
treefb7d49795dba6e15185979909c9205f0903e5fee /gnu/packages/avahi.scm
parent459f0d07a1b0f76802a8b7deec8488f5956bce86 (diff)
downloadguix-d20665ecbfe7278f550a1ed4cd76565013feab59.tar.gz
guix: 'guile' executable ignores GUILE_LOAD_PATH during startup.
When starting the 'guix' command, this ensures Guile modules are
immediately found instead of being search for in other directories.
This reduces the number of 'stat' calls during startup when
GUILE_LOAD_PATH is set to (almost) that of "env -i $(type -P guix)".

* gnu/packages/aux-files/guile-launcher.c (load_path)
(load_compiled_path): New variables.
(inner_main): Restore GUILE_LOAD_PATH and GUILE_LOAD_COMPILED_PATH and
set %load-path and %load-compiled-path accordingly.
(main): Save GUILE_LOAD_PATH and GUILE_LOAD_COMPILED_PATH and unset them.
Diffstat (limited to 'gnu/packages/avahi.scm')
0 files changed, 0 insertions, 0 deletions