summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/objcpp.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2024-06-14 19:25:18 +0300
committerGitHub <noreply@github.com>2024-06-14 19:25:18 +0300
commitce889d68706092159dfc4802301d01ff023f05a4 (patch)
tree26897128a813829821d1ad714a9f19d085c9e95e /mesonbuild/compilers/objcpp.py
parent0352c900bc33ae2796d1e0881986f2163b7e256d (diff)
parent181c3499fde491650269c236ea639c92f10c6914 (diff)
downloadmeson-ce889d68706092159dfc4802301d01ff023f05a4.tar.gz
Merge pull request #13307 from mesonbuild/optstorerefactor
Convert OptionStore from a dict to a full class with named methods
Diffstat (limited to 'mesonbuild/compilers/objcpp.py')
-rw-r--r--mesonbuild/compilers/objcpp.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/compilers/objcpp.py b/mesonbuild/compilers/objcpp.py
index e28e3ed30..e24406c32 100644
--- a/mesonbuild/compilers/objcpp.py
+++ b/mesonbuild/compilers/objcpp.py
@@ -92,9 +92,9 @@ class ClangObjCPPCompiler(ClangCompiler, ObjCPPCompiler):
def get_option_compile_args(self, options: 'coredata.KeyedOptionDictType') -> T.List[str]:
args = []
- std = options[OptionKey('std', machine=self.for_machine, lang='cpp')]
- if std.value != 'none':
- args.append('-std=' + std.value)
+ std = options.get_value(OptionKey('std', machine=self.for_machine, lang='cpp'))
+ if std != 'none':
+ args.append('-std=' + std)
return args