diff options
| author | Xavier Claessens <xavier.claessens@collabora.com> | 2023-11-27 15:47:16 -0500 |
|---|---|---|
| committer | Xavier Claessens <xclaesse@gmail.com> | 2024-03-15 11:38:54 -0400 |
| commit | c1076241af11f10acac28d771688bb54c6b0b340 (patch) | |
| tree | 337ac789c919fac824f36807f02874396ce669ce /mesonbuild/environment.py | |
| parent | 6b569527bca9354be77769f91a0607cfd692d861 (diff) | |
| download | meson-c1076241af11f10acac28d771688bb54c6b0b340.tar.gz | |
compilers: No need to pass exe_wrapper everywhere
Places where compiler needs it already have access to Environment object
and can use it directly.
This fixes mypy complaining that not all compilers have self.exe_wrapper
in run() method that got moved to base class.
Diffstat (limited to 'mesonbuild/environment.py')
| -rw-r--r-- | mesonbuild/environment.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index af69f64ec..86bbbb136 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -957,3 +957,6 @@ class Environment: if not self.need_exe_wrapper(): return None return self.exe_wrapper + + def has_exe_wrapper(self) -> bool: + return self.exe_wrapper and self.exe_wrapper.found() |
