From: Thomas Weißschuh Date: Wed, 22 Apr 2026 21:29:00 +0000 (+0200) Subject: meson: respect build-dmesg for test_dmesg X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=1200b728093afe05941ffbb3344a087ba94f97bb;p=thirdparty%2Futil-linux.git meson: respect build-dmesg for test_dmesg If dmesg can not be built, test_dmesg can't be either. Signed-off-by: Thomas Weißschuh --- diff --git a/meson.build b/meson.build index 185f55977..99164bad5 100644 --- a/meson.build +++ b/meson.build @@ -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