diff options
author | Patrick Steinhardt <ps@pks.im> | 2025-02-26 09:22:19 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-02-26 09:09:36 -0800 |
commit | 42846efc3ba31cc0384ca57a70b27fc37313c6ad (patch) | |
tree | e95c144f29c626f2a661b846a3523262fc60714c /diff.c | |
parent | 454d79b61be88831c1b899a1268f7b3d6cc577d2 (diff) |
meson: improve handling of `sane_tool_path` option
The `sane_tool_path` option can be used to override the PATH variable
from which the build process, tests and ultimately Git will end up
picking programs from. It is currently lacking though because we only
use it to populate the PATH environment variable for executed scripts
and for the `BROKEN_PATH_FIX` mechanism, but we don't use it to find
programs used in the build process itself.
Fix this issue by treating it similar to the Windows-specific paths,
which will make us use it both to find programs and to populate the PATH
environment variable.
To help with this fix, change the type of the option to be an array of
paths, which makes the handling a bit easier for us. It's also the
correct thing to do as the input indeed is a list of paths.
Furthermore, the option now overrides the default behaviour on Windows,
which si to pick up tools from Git for Windows. This is done so that it
becomes easier to override that default behaviour in case it's not
desired.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
0 files changed, 0 insertions, 0 deletions