From: Yu Watanabe Date: Fri, 13 Nov 2020 18:09:23 +0000 (+0900) Subject: meson: fix build tests for c++14 and c++17 X-Git-Tag: v247~64 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a614a6e2f8d2f8b3c4a3dce16a79459d619ccf9d;p=thirdparty%2Fsystemd.git meson: fix build tests for c++14 and c++17 --- diff --git a/src/systemd/meson.build b/src/systemd/meson.build index 4f578091076..96cbf466200 100644 --- a/src/systemd/meson.build +++ b/src/systemd/meson.build @@ -58,10 +58,10 @@ if add_languages('cpp', required : false) opts += [['c++'], ['c++', '-std=c++98'], ['c++', '-std=c++11']] - if cc.has_argument('-std=c++14') + if cxx.has_argument('-std=c++14') opts += [['c++', '-std=c++14']] endif - if cc.has_argument('-std=c++17') + if cxx.has_argument('-std=c++17') opts += [['c++', '-std=c++17']] endif endif