]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: fix build tests for c++14 and c++17
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 13 Nov 2020 18:09:23 +0000 (03:09 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 17 Nov 2020 08:55:08 +0000 (09:55 +0100)
src/systemd/meson.build

index 4f578091076b6fcaa32ac5a17273aaeeaba6c5d8..96cbf466200a896cca73aaf9bd01b9ef8443ae67 100644 (file)
@@ -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