diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2024-06-09 01:03:49 +0300 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2024-06-14 17:19:53 +0300 |
| commit | 9a6fcd4d9a0c7bb248c5d0587632b741a3301e03 (patch) | |
| tree | f066ab0ee942d2f12579bb075cb3afbdf3386f0b /mesonbuild/compilers/objcpp.py | |
| parent | c0d86024f5e647858f88bc400b45b3ad88a25c97 (diff) | |
| download | meson-9a6fcd4d9a0c7bb248c5d0587632b741a3301e03.tar.gz | |
Replace direct indexing with named methods.
Diffstat (limited to 'mesonbuild/compilers/objcpp.py')
| -rw-r--r-- | mesonbuild/compilers/objcpp.py | 6 |
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 |
