From 41a0b08e646b54b27ae49fb4c23e0c45c60369ca Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Tue, 13 Aug 2024 20:30:29 +0000 Subject: meson: Don't use `target_machine` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The target_machine variable is meant for the target of cross compilers. We are not a cross compiler, so instead reuse our host_machine based checks. Fixes Linux→FreeBSD cross, since Meson can't figure out `target_machine.kernel()` in that case. Fixes: https://git.lix.systems/lix-project/lix/issues/469 Change-Id: Ia46a64c8d507c3b08987a1de1eda171ff5e50df4 --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 41bfe6722..cf1b877f9 100644 --- a/meson.build +++ b/meson.build @@ -417,7 +417,7 @@ check_funcs = [ 'strsignal', 'sysconf', ] -if target_machine.kernel() in ['linux', 'freebsd'] +if is_linux or is_freebsd # musl does not have close_range as of 2024-08-10 # patch: https://www.openwall.com/lists/musl/2024/08/01/9 check_funcs += [ 'close_range' ] -- cgit v1.2.3