diff options
author | Patrick Steinhardt <ps@pks.im> | 2025-02-26 09:22:11 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-02-26 09:09:34 -0800 |
commit | bd262d07b65af894b1014cd8cc2d02aaee65800b (patch) | |
tree | d25291e3f5f19ae5069c3fd292994884205e19ce /gitweb/static/js/javascript-detection.js | |
parent | 72f1ddfbc95b47c6011bb423e6947418d1d72709 (diff) |
meson: fix exec path with enabled runtime prefix
When the runtime prefix option is enabled, Git is built such that it
knows to locate its binaries relative to the directory a binary is being
executed from. This requires us to figure out relative paths, which is
handled in `system_prefix()` by trying to strip a couple of well-known
paths.
One of these paths, GIT_EXEC_PATH, is expected to be absolute when
runtime prefixes are enabled, but relative otherwise. And while our
Makefile gets this correctly, in Meson we always wire up the absolute
path, which may result in us not being able to find binaries.
Fix this by conditionally injecting the paths depending on whether or
not the `runtime_prefix` option is enabled.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitweb/static/js/javascript-detection.js')
0 files changed, 0 insertions, 0 deletions