aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/asm.py
diff options
context:
space:
mode:
authorTristan Partin <tristan@partin.io>2023-07-12 17:36:25 -0500
committerTristan Partin <tristan@partin.io>2023-07-12 18:56:06 -0500
commit921c2370a722cbaa42bd256c699fae3185084939 (patch)
tree8884965e8f1e1413703f271ceba046e52647d723 /mesonbuild/compilers/asm.py
parent1624354f33bf0a33f0e715ba1ca391ae0154ad19 (diff)
downloadmeson-921c2370a722cbaa42bd256c699fae3185084939.zip
meson-921c2370a722cbaa42bd256c699fae3185084939.tar.gz
meson-921c2370a722cbaa42bd256c699fae3185084939.tar.bz2
Replace some type comments with annotations
Diffstat (limited to 'mesonbuild/compilers/asm.py')
-rw-r--r--mesonbuild/compilers/asm.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/mesonbuild/compilers/asm.py b/mesonbuild/compilers/asm.py
index e34b4a6..ab3a638 100644
--- a/mesonbuild/compilers/asm.py
+++ b/mesonbuild/compilers/asm.py
@@ -11,7 +11,7 @@ if T.TYPE_CHECKING:
from ..mesonlib import MachineChoice
from ..envconfig import MachineInfo
-nasm_optimization_args = {
+nasm_optimization_args: T.Dict[str, T.List[str]] = {
'plain': [],
'0': ['-O0'],
'g': ['-O0'],
@@ -19,7 +19,7 @@ nasm_optimization_args = {
'2': ['-Ox'],
'3': ['-Ox'],
's': ['-Ox'],
-} # type: T.Dict[str, T.List[str]]
+}
class NasmCompiler(Compiler):
@@ -295,7 +295,12 @@ class MetrowerksAsmCompiler(MetrowerksCompiler, Compiler):
Compiler.__init__(self, ccache, exelist, version, for_machine, info, linker, full_version, is_cross)
MetrowerksCompiler.__init__(self)
- self.warn_args = {'0': [], '1': [], '2': [], '3': [], 'everything': []} # type: T.Dict[str, T.List[str]]
+ self.warn_args: T.Dict[str, T.List[str]] = {
+ '0': [],
+ '1': [],
+ '2': [],
+ '3': [],
+ 'everything': []}
self.can_compile_suffixes.add('s')
def get_crt_compile_args(self, crt_val: str, buildtype: str) -> T.List[str]: