summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/compilers.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2025-10-31 11:20:09 -0700
committerDylan Baker <dylan@pnwbakers.com>2025-11-19 10:48:48 -0800
commitfc97e4f395e6ad551eb71b97b85df24302bcb7a4 (patch)
treebee3aedd2c51b374b79080eaa50d8916eaadc2a0 /mesonbuild/compilers/compilers.py
parentae56005bbd8f8c47dfe14d9e540cf52ddf9b0d73 (diff)
downloadmeson-fc97e4f395e6ad551eb71b97b85df24302bcb7a4.tar.gz
compilers: Remove Environment parameter from Compiler.run_sanity_check
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
-rw-r--r--mesonbuild/compilers/compilers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index 45504e15e..73a623c9a 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -1223,13 +1223,13 @@ class Compiler(HoldableObject, metaclass=abc.ABCMeta):
is good enough here.
"""
- def run_sanity_check(self, environment: Environment, cmdlist: T.List[str], work_dir: str, use_exe_wrapper_for_cross: bool = True) -> T.Tuple[str, str]:
+ def run_sanity_check(self, cmdlist: T.List[str], work_dir: str, use_exe_wrapper_for_cross: bool = True) -> T.Tuple[str, str]:
# Run sanity check
if self.is_cross and use_exe_wrapper_for_cross:
- if not environment.has_exe_wrapper():
+ if not self.environment.has_exe_wrapper():
# Can't check if the binaries run so we have to assume they do
return ('', '')
- cmdlist = environment.exe_wrapper.get_command() + cmdlist
+ cmdlist = self.environment.exe_wrapper.get_command() + cmdlist
mlog.debug('Running test binary command: ', mesonlib.join_args(cmdlist))
try:
pe, stdo, stde = Popen_safe_logged(cmdlist, 'Sanity check', cwd=work_dir)