From: Yu Watanabe Date: Mon, 29 Oct 2018 17:12:13 +0000 (+0900) Subject: test: also run compile tests for libudev.h X-Git-Tag: v240~413^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=76281c640821b0a165b79d75ada78e43c51cf031;p=thirdparty%2Fsystemd.git test: also run compile tests for libudev.h --- diff --git a/src/systemd/meson.build b/src/systemd/meson.build index dde0aaf7819..e0c967efc57 100644 --- a/src/systemd/meson.build +++ b/src/systemd/meson.build @@ -65,11 +65,11 @@ if cxx.found() endif endif -foreach header : _systemd_headers + _not_installed_headers +foreach header : _systemd_headers + _not_installed_headers + ['../libudev/libudev.h'] foreach opt : opts - name = ''.join([header, ':'] + opt) + name = ''.join(['cc-', header.split('/')[-1], ':'] + opt) if want_tests != 'false' - test('cc-' + name, + test(name, check_compilation_sh, args : cc.cmd_array() + ['-c', '-x'] + opt + ['-Werror', '-include',