]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: gate choom on LINUX
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 29 Apr 2026 12:40:57 +0000 (14:40 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Mon, 4 May 2026 13:52:04 +0000 (15:52 +0200)
This tool uses Linux-specific API, encode this in the build system.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
meson.build

index 4ee9cd6aa0e853f0eafbeaca1ee74cf31a5908de..28f2d99186ae838abb008477970eddf3e931fd08 100644 (file)
@@ -1490,7 +1490,9 @@ if opt and not is_disabler(exe)
   bashcompletions += ['chmem']
 endif
 
-opt = get_option('build-choom').allowed()
+opt = get_option('build-choom') \
+      .require(LINUX) \
+      .allowed()
 exe = executable(
   'choom',
   choom_sources,