aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/cpp.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-12-02 10:48:35 -0800
committerDylan Baker <dylan@pnwbakers.com>2021-01-04 12:15:41 -0800
commitbdca05e2e66abbd872c17b8226641a2b8d018112 (patch)
tree05abd2b2aa6382e608bf9e665c34b58c309ecdee /mesonbuild/compilers/cpp.py
parent615686fd6dc39c517952c0f9f5fb208e913d8887 (diff)
downloadmeson-bdca05e2e66abbd872c17b8226641a2b8d018112.zip
meson-bdca05e2e66abbd872c17b8226641a2b8d018112.tar.gz
meson-bdca05e2e66abbd872c17b8226641a2b8d018112.tar.bz2
Add choices to OptionProxy
they're probably not strictly needed, but it makes mypy happy.
Diffstat (limited to 'mesonbuild/compilers/cpp.py')
-rw-r--r--mesonbuild/compilers/cpp.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py
index 607bea7..7577a54 100644
--- a/mesonbuild/compilers/cpp.py
+++ b/mesonbuild/compilers/cpp.py
@@ -206,7 +206,7 @@ class ClangCPPCompiler(ClangCompiler, CPPCompiler):
),
'rtti': coredata.UserBooleanOption('Enable RTTI', True),
})
- opts['std'].choices = [ # type: ignore
+ opts['std'].choices = [
'none', 'c++98', 'c++03', 'c++11', 'c++14', 'c++17', 'c++1z',
'c++2a', 'c++20', 'gnu++11', 'gnu++14', 'gnu++17', 'gnu++1z',
'gnu++2a', 'gnu++20',
@@ -296,7 +296,7 @@ class ArmclangCPPCompiler(ArmclangCompiler, CPPCompiler):
'default',
),
})
- opts['std'].choices = [ # type: ignore
+ opts['std'].choices = [
'none', 'c++98', 'c++03', 'c++11', 'c++14', 'c++17', 'gnu++98',
'gnu++03', 'gnu++11', 'gnu++14', 'gnu++17',
]
@@ -345,7 +345,7 @@ class GnuCPPCompiler(GnuCompiler, CPPCompiler):
False,
)
})
- opts['std'].choices = [ # type: ignore
+ opts['std'].choices = [
'none', 'c++98', 'c++03', 'c++11', 'c++14', 'c++17', 'c++1z',
'c++2a', 'c++20', 'gnu++03', 'gnu++11', 'gnu++14', 'gnu++17',
'gnu++1z', 'gnu++2a', 'gnu++20',
@@ -449,7 +449,7 @@ class ElbrusCPPCompiler(GnuCPPCompiler, ElbrusCompiler):
False,
),
})
- opts['std'].choices = cpp_stds # type: ignore
+ opts['std'].choices = cpp_stds
return opts
# Elbrus C++ compiler does not have lchmod, but there is only linker warning, not compiler error.
@@ -520,7 +520,7 @@ class IntelCPPCompiler(IntelGnuLikeCompiler, CPPCompiler):
'rtti': coredata.UserBooleanOption('Enable RTTI', True),
'debugstl': coredata.UserBooleanOption('STL debug mode', False),
})
- opts['std'].choices = ['none'] + c_stds + g_stds # type: ignore
+ opts['std'].choices = ['none'] + c_stds + g_stds
return opts
def get_option_compile_args(self, options: 'OptionDictType') -> T.List[str]:
@@ -577,7 +577,7 @@ class VisualStudioLikeCPPCompilerMixin(CompilerMixinBase):
msvc_winlibs,
),
})
- opts['std'].choices = cpp_stds # type: ignore
+ opts['std'].choices = cpp_stds
return opts
def get_option_compile_args(self, options: 'OptionDictType') -> T.List[str]:
@@ -721,7 +721,7 @@ class ArmCPPCompiler(ArmCompiler, CPPCompiler):
def get_options(self) -> 'OptionDictType':
opts = CPPCompiler.get_options(self)
- opts['std'].choices = ['none', 'c++03', 'c++11'] # type: ignore
+ opts['std'].choices = ['none', 'c++03', 'c++11']
return opts
def get_option_compile_args(self, options: 'OptionDictType') -> T.List[str]:
@@ -779,7 +779,7 @@ class C2000CPPCompiler(C2000Compiler, CPPCompiler):
def get_options(self) -> 'OptionDictType':
opts = CPPCompiler.get_options(self)
- opts['std'].choices = ['none', 'c++03'] # type: ignore
+ opts['std'].choices = ['none', 'c++03']
return opts
def get_always_args(self) -> T.List[str]: