From: Thomas Weißschuh Date: Wed, 29 Apr 2026 11:37:45 +0000 (+0200) Subject: meson: gate lscpu on LINUX and cpu_set_t X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=3fb2ff8281fc4df7e837f3f92decce47587088e9;p=thirdparty%2Futil-linux.git meson: gate lscpu on LINUX and cpu_set_t This tool uses Linux-specific API and cpu_set_t, encode this in the build system. Signed-off-by: Thomas Weißschuh --- diff --git a/meson.build b/meson.build index 6326295de..d67fec2f3 100644 --- a/meson.build +++ b/meson.build @@ -2046,7 +2046,10 @@ if opt and not is_disabler(exe) bashcompletions += ['swapoff'] endif -opt = get_option('build-lscpu').allowed() +opt = get_option('build-lscpu') \ + .require(LINUX) \ + .require(conf.get('HAVE_CPU_SET_T').to_string() == '1') \ + .allowed() exe = executable( 'lscpu', lscpu_sources,