diff options
author | Jan Janssen <medhefgo@web.de> | 2022-05-02 10:37:31 +0200 |
---|---|---|
committer | Jan Janssen <medhefgo@web.de> | 2022-05-04 15:59:03 +0200 |
commit | 3d35c6d47e8c6dab9f1eef738231cce605d0f923 (patch) | |
tree | b69932bbfee2d4091101af4e36ff080de48704fa | |
parent | c322cfafbab04b0eb29cfcb796eec92e972318fb (diff) | |
download | systemd-3d35c6d47e8c6dab9f1eef738231cce605d0f923.tar.gz |
meson: Exit early with subdir_done()
-rw-r--r-- | src/systemd/meson.build | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/systemd/meson.build b/src/systemd/meson.build index 9faee53db9..9302d6ca2e 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 |