diff options
author | Carlo Marcelo Arenas Belón <carenas@gmail.com> | 2025-07-18 10:02:25 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-07-18 10:21:42 -0700 |
commit | 8c3add51a873616075baebed164eca4aa1069c51 (patch) | |
tree | 03de3b0cc7d7f2e7efa3b47119b74bdac0914e67 /commit-graph.c | |
parent | 16bd9f20a403117f2e0d9bcda6c6e621d3763e77 (diff) |
meson: work around broken system PCRE2 dependency in macOS
macOS provides a PCRE2 library in base that is not usable and not
configured properly, as it installs a pkgconf module that
points to a non-existent pcre2.h header in /usr/local/include.
Detect that case and if the feature is enabled, try to fallback
to a wrapped subproject through an anonymous dependency, aborting
with an error if that is not possible.
Change the feature to "auto" and print a warning and disable it
if a broken dependency was detected, but to keep consistency
with the cmake build system used on Windows, add a special rule
to re-enable the pcre2 feature by default there.
Helped-by: Eric Sunshine <sunshine@sunshineco.com>
Suggested-by: Eli Schwartz <eschwartz@gentoo.org>
Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions