aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/compilers.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-09-25 12:24:47 -0700
committerDylan Baker <dylan@pnwbakers.com>2020-10-01 15:05:00 -0700
commitefceec96156f5fc701a07089bf31a81e8145a67b (patch)
treed1be5f1190e0eb1e4912b3d9538922691ab46ec3 /mesonbuild/compilers/compilers.py
parentd3a059b55fac4e9cc3c7c306b2e6a4cf5e424aad (diff)
downloadmeson-efceec96156f5fc701a07089bf31a81e8145a67b.zip
meson-efceec96156f5fc701a07089bf31a81e8145a67b.tar.gz
meson-efceec96156f5fc701a07089bf31a81e8145a67b.tar.bz2
Compilers/vala: Add type annotations
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
-rw-r--r--mesonbuild/compilers/compilers.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index fbb3eae..260a1f4 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -1088,6 +1088,15 @@ class Compiler(metaclass=abc.ABCMeta):
"""Arguments to turn off default inclusion of standard libraries."""
return []
+ def get_warn_args(self, level: str) -> T.List[str]:
+ return []
+
+ def get_werror_args(self) -> T.List[str]:
+ return []
+
+ def get_optimization_args(self, optimization_level: str) -> T.List[str]:
+ raise EnvironmentError('{} does not implement get_optimization_args'.format(self.id))
+
def get_args_from_envvars(lang: str,
for_machine: MachineChoice,