From 5acac56eec0a4d09d5f32079f33dd30515e1b81c Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Thu, 13 Nov 2025 11:27:08 -0800 Subject: compilers: Remove Environment parameter from CLikeCompiler.output_is_64bit --- mesonbuild/compilers/fortran.py | 2 +- mesonbuild/compilers/mixins/clike.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mesonbuild/compilers/fortran.py b/mesonbuild/compilers/fortran.py index a2f9fa3e3..87683bda1 100644 --- a/mesonbuild/compilers/fortran.py +++ b/mesonbuild/compilers/fortran.py @@ -246,7 +246,7 @@ class FortranCompiler(CLikeCompiler, Compiler): return int(res.stdout), res.cached @functools.lru_cache() - def output_is_64bit(self, env: 'Environment') -> bool: + def output_is_64bit(self) -> bool: ''' returns true if the output produced is 64-bit, false if 32-bit ''' diff --git a/mesonbuild/compilers/mixins/clike.py b/mesonbuild/compilers/mixins/clike.py index e031e38b6..ac21c33e3 100644 --- a/mesonbuild/compilers/mixins/clike.py +++ b/mesonbuild/compilers/mixins/clike.py @@ -1115,7 +1115,7 @@ class CLikeCompiler(Compiler): return None @functools.lru_cache() - def output_is_64bit(self, env: 'Environment') -> bool: + def output_is_64bit(self) -> bool: ''' returns true if the output produced is 64-bit, false if 32-bit ''' @@ -1146,7 +1146,7 @@ class CLikeCompiler(Compiler): # detect, we will just skip path validity checks done in # get_library_dirs() call try: - if self.output_is_64bit(self.environment): + if self.output_is_64bit(): elf_class = 2 else: elf_class = 1 -- cgit v1.2.3