summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/asm.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2025-10-31 10:42:07 -0700
committerDylan Baker <dylan@pnwbakers.com>2025-11-19 10:48:48 -0800
commitfc93ef0370dc2e4cb44fe4abf5729be3e3e3a6c3 (patch)
tree95c74f937c8f2a8cf5972f3785a07f7f41628a3c /mesonbuild/compilers/asm.py
parenta6c4a4d7e867db4f98db1127d1246c43c5c7a863 (diff)
downloadmeson-fc93ef0370dc2e4cb44fe4abf5729be3e3e3a6c3.tar.gz
compilers: Stop passing `is_cross`
This is calculated by `Environment().is_cross_build(for_machine)`. Since we have that in the Compiler class, just calculate it in the Compiler initializer
Diffstat (limited to 'mesonbuild/compilers/asm.py')
-rw-r--r--mesonbuild/compilers/asm.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/mesonbuild/compilers/asm.py b/mesonbuild/compilers/asm.py
index 01915bc3e..54218eb0a 100644
--- a/mesonbuild/compilers/asm.py
+++ b/mesonbuild/compilers/asm.py
@@ -35,11 +35,11 @@ class ASMCompiler(Compiler):
def __init__(self, ccache: T.List[str], exelist: T.List[str], version: str,
for_machine: MachineChoice, env: Environment,
linker: T.Optional[DynamicLinker] = None,
- full_version: T.Optional[str] = None, is_cross: bool = False):
+ full_version: T.Optional[str] = None):
info = env.machines[for_machine]
if self._SUPPORTED_ARCHES and info.cpu_family not in self._SUPPORTED_ARCHES:
raise EnvironmentException(f'ASM Compiler {self.id} does not support building for {info.cpu_family} CPU family.')
- super().__init__(ccache, exelist, version, for_machine, env, linker, full_version, is_cross)
+ super().__init__(ccache, exelist, version, for_machine, env, linker, full_version)
def sanity_check(self, work_dir: str, environment: Environment) -> None:
return None
@@ -63,8 +63,8 @@ class NasmCompiler(ASMCompiler):
def __init__(self, ccache: T.List[str], exelist: T.List[str], version: str,
for_machine: 'MachineChoice', env: Environment,
linker: T.Optional['DynamicLinker'] = None,
- full_version: T.Optional[str] = None, is_cross: bool = False):
- super().__init__(ccache, exelist, version, for_machine, env, linker, full_version, is_cross)
+ full_version: T.Optional[str] = None):
+ super().__init__(ccache, exelist, version, for_machine, env, linker, full_version)
if isinstance(self.linker, VisualStudioLikeLinkerMixin):
self.base_options.add(OptionKey('b_vscrt'))
@@ -281,8 +281,8 @@ class TILinearAsmCompiler(TICompiler, ASMCompiler):
def __init__(self, ccache: T.List[str], exelist: T.List[str], version: str,
for_machine: MachineChoice, env: Environment,
linker: T.Optional[DynamicLinker] = None,
- full_version: T.Optional[str] = None, is_cross: bool = False):
- ASMCompiler.__init__(self, ccache, exelist, version, for_machine, env, linker, full_version, is_cross)
+ full_version: T.Optional[str] = None):
+ ASMCompiler.__init__(self, ccache, exelist, version, for_machine, env, linker, full_version)
TICompiler.__init__(self)
def needs_static_linker(self) -> bool:
@@ -304,8 +304,8 @@ class MetrowerksAsmCompiler(MetrowerksCompiler, ASMCompiler):
def __init__(self, ccache: T.List[str], exelist: T.List[str], version: str,
for_machine: 'MachineChoice', env: Environment,
linker: T.Optional['DynamicLinker'] = None,
- full_version: T.Optional[str] = None, is_cross: bool = False):
- ASMCompiler.__init__(self, ccache, exelist, version, for_machine, env, linker, full_version, is_cross)
+ full_version: T.Optional[str] = None):
+ ASMCompiler.__init__(self, ccache, exelist, version, for_machine, env, linker, full_version)
MetrowerksCompiler.__init__(self)
self.warn_args: T.Dict[str, T.List[str]] = {