aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorArtemis Tosini <me@artem.ist>2024-08-13 20:30:29 +0000
committerjade <lix@jade.fyi>2024-08-16 14:24:03 +0000
commit41a0b08e646b54b27ae49fb4c23e0c45c60369ca (patch)
tree6e3ee58f1f69c8e9415e9afc0991b71957c277f6 /meson.build
parentb016eb0895bb6714a4f6530d9a2bb6577ac6c3cf (diff)
meson: Don't use `target_machine`
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
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
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' ]