diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2025-11-13 11:27:08 -0800 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-11-19 10:48:48 -0800 |
| commit | 5acac56eec0a4d09d5f32079f33dd30515e1b81c (patch) | |
| tree | 3202c2a4d4f1232ea40b979365965aa301d806b7 | |
| parent | 11b17085f862e0e9598a7f1509daa4f5abf2ee87 (diff) | |
| download | meson-5acac56eec0a4d09d5f32079f33dd30515e1b81c.tar.gz | |
compilers: Remove Environment parameter from CLikeCompiler.output_is_64bit
| -rw-r--r-- | mesonbuild/compilers/fortran.py | 2 | ||||
| -rw-r--r-- | 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 |
