diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2025-10-31 10:42:07 -0700 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-11-19 10:48:48 -0800 |
| commit | fc93ef0370dc2e4cb44fe4abf5729be3e3e3a6c3 (patch) | |
| tree | 95c74f937c8f2a8cf5972f3785a07f7f41628a3c /mesonbuild/compilers/compilers.py | |
| parent | a6c4a4d7e867db4f98db1127d1246c43c5c7a863 (diff) | |
| download | meson-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/compilers.py')
| -rw-r--r-- | mesonbuild/compilers/compilers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index 9ae48bfab..2d548a45d 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -474,7 +474,7 @@ class Compiler(HoldableObject, metaclass=abc.ABCMeta): def __init__(self, ccache: T.List[str], exelist: T.List[str], version: str, for_machine: MachineChoice, environment: Environment, linker: T.Optional['DynamicLinker'] = None, - full_version: T.Optional[str] = None, is_cross: bool = False): + full_version: T.Optional[str] = None): self.exelist = ccache + exelist self.exelist_no_ccache = exelist self.file_suffixes = lang_suffixes[self.language] |
