mirror of
https://github.com/git/git.git
synced 2026-01-09 01:34:00 +00:00
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>
This commit is contained in:
committed by
Junio C Hamano
parent
454d79b61b
commit
42846efc3b
@@ -13,8 +13,8 @@ option('perl_cpan_fallback', type: 'boolean', value: true,
|
||||
description: 'Install bundled copies of CPAN modules that serve as a fallback in case the modules are not available on the system.')
|
||||
option('runtime_prefix', type: 'boolean', value: false,
|
||||
description: 'Resolve ancillary tooling and support files relative to the location of the runtime binary instead of hard-coding them into the binary.')
|
||||
option('sane_tool_path', type: 'string', value: '',
|
||||
description: 'A colon-separated list of paths to prepend to PATH if your tools in /usr/bin are broken.')
|
||||
option('sane_tool_path', type: 'array', value: [],
|
||||
description: 'An array of paths to pick up tools from in case the normal tools are broken or lacking.')
|
||||
|
||||
# Build information compiled into Git and other parts like documentation.
|
||||
option('build_date', type: 'string', value: '',
|
||||
|
||||
Reference in New Issue
Block a user