From: Zbigniew Jędrzejewski-Szmek Date: Mon, 28 May 2018 07:07:36 +0000 (+0200) Subject: meson: test out headers with more standard versions X-Git-Tag: v239~198 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aeaac7b5404cf3ac3b37a2d9b3282ea30ce184c5;p=thirdparty%2Fsystemd.git meson: test out headers with more standard versions They all pass fine, but let's keep testing regularly. --- diff --git a/src/systemd/meson.build b/src/systemd/meson.build index b6fefb27a16..560b6f07bba 100644 --- a/src/systemd/meson.build +++ b/src/systemd/meson.build @@ -44,11 +44,24 @@ install_headers( opts = [['c'], ['c', '-ansi'], - ['c', '-std=iso9899:1990']] + ['c', '-std=iso9899:1990'], + ['c', '-std=iso9899:2011']] + +if cc.has_argument('-std=iso9899:2017') + opts += [['c', '-std=iso9899:2017']] +endif cxx = find_program('c++', required : false) if cxx.found() - opts += [['c++']] + opts += [['c++'], + ['c++', '-std=c++98'], + ['c++', '-std=c++11']] + if cc.has_argument('-std=c++14') + opts += [['c++', '-std=c++14']] + endif + if cc.has_argument('-std=c++17') + opts += [['c++', '-std=c++17']] + endif endif foreach header : _systemd_headers