diff options
author | Eli Schwartz <eschwartz@gentoo.org> | 2025-05-19 13:09:42 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-05-19 11:32:27 -0700 |
commit | cddcee7f64263922770bbe5c528ba6af4bf81fb5 (patch) | |
tree | c27a20dedfb87f36af7a56ab4fdadee27bd29b86 /builtin/commit-graph.c | |
parent | d50a5e8939abfc07c2ff97ae72e9330939b36ee0 (diff) |
meson: reformat default options to workaround bug in `meson configure`
Since 13cb20fc46 ("meson: fix compilation with Visual Studio",
2025-01-22) it has not been possible to list build options via `meson
configure`. This is due to Meson's static analysis of build options
failing to handle constant folding, and thinking we set a totally
invalid default `-std=`.
This is reported upstream but we anyways need to work with existing
versions. It turns out there is a simple solution: turn the entire
default option into a conditional branch, which means Meson sees either
nothing, or everything.
As a result, Git users can once again see pretty-printed options before
building.
Reported-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
Bug: https://github.com/mesonbuild/meson/issues/14623
Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions