From: Jan Janssen Date: Mon, 2 May 2022 08:37:31 +0000 (+0200) Subject: meson: Exit early with subdir_done() X-Git-Tag: v251-rc2~8^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d35c6d47e8c6dab9f1eef738231cce605d0f923;p=thirdparty%2Fsystemd.git meson: Exit early with subdir_done() --- diff --git a/src/systemd/meson.build b/src/systemd/meson.build index 9faee53db94..9302d6ca2e0 100644 --- a/src/systemd/meson.build +++ b/src/systemd/meson.build @@ -46,6 +46,10 @@ install_headers( ############################################################ +if want_tests == 'false' + subdir_done() +endif + opts = [['c'], ['c', '-ansi'], ['c', '-std=iso9899:1990'], @@ -74,12 +78,10 @@ foreach header : _systemd_headers + _not_installed_headers + [libudev_h_path] foreach opt : opts std_name = opt.length() == 2 ? '_'.join(opt[1].split(':')) : '' name = ''.join(['cc-', header.split('/')[-1], '_', opt[0], std_name]) - if want_tests != 'false' - test(name, - check_compilation_sh, - args : cc.cmd_array() + ['-c', '-x'] + opt + - ['-Werror', '-include', - meson.current_source_dir() / header]) - endif + test(name, + check_compilation_sh, + args : cc.cmd_array() + ['-c', '-x'] + opt + + ['-Werror', '-include', + meson.current_source_dir() / header]) endforeach endforeach