]> git.feebdaed.xyz Git - 0xmirror/git.git/commit
meson: only detect ICONV_OMITS_BOM if possible
authorToon Claes <toon@iotcl.com>
Tue, 2 Dec 2025 10:48:09 +0000 (11:48 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 5 Dec 2025 02:11:11 +0000 (11:11 +0900)
commit574ac610761495b7b7afcced7717188501402925
tree38af9f8afac161f4d29cd607881cec4d8ab958bd
parent9ce3478410e6d9769f4203687b1f074a64c0ac8e
meson: only detect ICONV_OMITS_BOM if possible

In our Meson setup it automatically detects whether ICONV_OMITS_BOM
should be defined. To check this, a piece of code is compiled and ran.

When cross-compiling, it's not possible to run this piece of code. Guard
this test with a can_run_host_binaries() check to ensure it can run.

Signed-off-by: Toon Claes <toon@iotcl.com>
Acked-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
meson.build