]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: do not check-build disabled targets
authorWanBingjiang <wanbingjiang@webray.com.cn>
Wed, 1 Jul 2026 02:27:58 +0000 (10:27 +0800)
committerWanBingjiang <wanbingjiang@webray.com.cn>
Wed, 1 Jul 2026 02:28:08 +0000 (10:28 +0800)
Signed-off-by: WanBingjiang <wanbingjiang@webray.com.cn>
meson.build

index 2768cb87985be2e9c7c84f0ca166c534ae23a99f..5f556ebced140e24f0c67b48d4e04d915521f3ff 100644 (file)
@@ -1453,7 +1453,6 @@ exe2 = executable(
   dependencies : [curses_libs,
                  lib_magic],
   build_by_default : opt and program_tests)
-exes += exe
 if opt and not is_disabler(exe)
   exes += [exe, exe2]
   manadocs += more_manadocs
@@ -3151,7 +3150,7 @@ exe2 = executable(
                lib_uuid],
   dependencies : thread_libs,
   build_by_default : opt and program_tests)
-if not is_disabler(exe)
+if opt and not is_disabler(exe)
   exes += [exe, exe2]
   manadocs += uuidd_manadocs
   bashcompletions += ['uuidd']
@@ -4078,7 +4077,9 @@ exe = executable(
   'tests/helpers/test_enosys.c',
   include_directories : includes,
   build_by_default: opt and program_tests)
-exes += exe
+if opt and not is_disabler(exe)
+  exes += exe
+endif
 
 exe = executable(
   'test_open_twice',