]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: respect build-dmesg for test_dmesg
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 22 Apr 2026 21:29:00 +0000 (23:29 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Sun, 3 May 2026 14:29:39 +0000 (16:29 +0200)
If dmesg can not be built, test_dmesg can't be either.

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

index 185f5597702e3b5f3ea4db43843347945da479ad..99164bad5b53e6c2cba3e0fc28b29b0bf0fc44d8 100644 (file)
@@ -1673,8 +1673,8 @@ exe = executable(
   c_args : '-DTEST_DMESG',
   link_with : [lib_common,
                lib_tcolors],
-  build_by_default : program_tests)
-if not is_disabler(exe)
+  build_by_default : opt and program_tests)
+if opt and not is_disabler(exe)
   exes += exe
 endif