summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2025-10-07 09:16:06 -0700
committerDylan Baker <dylan@pnwbakers.com>2025-10-07 09:16:06 -0700
commitf80f27c140b3630e7a9fdae13f62d7a0021f3fff (patch)
treeb5995e354ae5949646eea499d50dd007ebdca6e1
parent81b22c1190ca2ff448c0f6f1c6d52e96f32a834c (diff)
downloadmeson-f80f27c140b3630e7a9fdae13f62d7a0021f3fff.tar.gz
Revert "compilers/asm: Introduce an ASMCompiler base class"
This reverts commit 1e254ad7f327e5ed2021463e4b66c37072d354e3.
-rw-r--r--mesonbuild/compilers/asm.py19
1 files changed, 7 insertions, 12 deletions
diff --git a/mesonbuild/compilers/asm.py b/mesonbuild/compilers/asm.py
index de5925df8..d358ca992 100644
--- a/mesonbuild/compilers/asm.py
+++ b/mesonbuild/compilers/asm.py
@@ -26,12 +26,7 @@ nasm_optimization_args: T.Dict[str, T.List[str]] = {
}
-class ASMCompiler(Compiler):
-
- """Shared base class for all ASM Compilers (Assemblers)"""
-
-
-class NasmCompiler(ASMCompiler):
+class NasmCompiler(Compiler):
language = 'nasm'
id = 'nasm'
@@ -157,7 +152,7 @@ class YasmCompiler(NasmCompiler):
return ['--depfile', outfile]
# https://learn.microsoft.com/en-us/cpp/assembler/masm/ml-and-ml64-command-line-reference
-class MasmCompiler(ASMCompiler):
+class MasmCompiler(Compiler):
language = 'masm'
id = 'ml'
@@ -215,7 +210,7 @@ class MasmCompiler(ASMCompiler):
# https://learn.microsoft.com/en-us/cpp/assembler/arm/arm-assembler-command-line-reference
-class MasmARMCompiler(ASMCompiler):
+class MasmARMCompiler(Compiler):
language = 'masm'
id = 'armasm'
@@ -266,14 +261,14 @@ class MasmARMCompiler(ASMCompiler):
# https://downloads.ti.com/docs/esd/SPRUI04/
-class TILinearAsmCompiler(TICompiler, ASMCompiler):
+class TILinearAsmCompiler(TICompiler, Compiler):
language = 'linearasm'
def __init__(self, ccache: T.List[str], exelist: T.List[str], version: str,
for_machine: MachineChoice, info: MachineInfo,
linker: T.Optional[DynamicLinker] = None,
full_version: T.Optional[str] = None, is_cross: bool = False):
- ASMCompiler.__init__(self, ccache, exelist, version, for_machine, info, linker, full_version, is_cross)
+ Compiler.__init__(self, ccache, exelist, version, for_machine, info, linker, full_version, is_cross)
TICompiler.__init__(self)
def needs_static_linker(self) -> bool:
@@ -293,14 +288,14 @@ class TILinearAsmCompiler(TICompiler, ASMCompiler):
return 'd'
-class MetrowerksAsmCompiler(MetrowerksCompiler, ASMCompiler):
+class MetrowerksAsmCompiler(MetrowerksCompiler, Compiler):
language = 'nasm'
def __init__(self, ccache: T.List[str], exelist: T.List[str], version: str,
for_machine: 'MachineChoice', info: 'MachineInfo',
linker: T.Optional['DynamicLinker'] = None,
full_version: T.Optional[str] = None, is_cross: bool = False):
- ASMCompiler.__init__(self, ccache, exelist, version, for_machine, info, linker, full_version, is_cross)
+ Compiler.__init__(self, ccache, exelist, version, for_machine, info, linker, full_version, is_cross)
MetrowerksCompiler.__init__(self)
self.warn_args: T.Dict[str, T.List[str]] = {