summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2025-11-13 11:34:12 -0800
committerDylan Baker <dylan@pnwbakers.com>2025-11-19 10:48:48 -0800
commita76dae2d9b22d53e72343e9ea86cd79c9fa39310 (patch)
tree2c8452385ef4b772967d378f7961abf07ec6cca0 /mesonbuild/compilers
parentb44846c0f287a6fa2205b0b0df2b6c97607b6ada (diff)
downloadmeson-a76dae2d9b22d53e72343e9ea86cd79c9fa39310.tar.gz
compilers: Remove Environment parameter from RustCompiler.get_rust_tool
Diffstat (limited to 'mesonbuild/compilers')
-rw-r--r--mesonbuild/compilers/rust.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/compilers/rust.py b/mesonbuild/compilers/rust.py
index da0c7ee1d..0a1aea93e 100644
--- a/mesonbuild/compilers/rust.py
+++ b/mesonbuild/compilers/rust.py
@@ -429,7 +429,7 @@ class RustCompiler(Compiler):
action = "no" if disable else "yes"
return ['-C', f'debug-assertions={action}', '-C', 'overflow-checks=no']
- def get_rust_tool(self, name: str, env: Environment) -> T.List[str]:
+ def get_rust_tool(self, name: str) -> T.List[str]:
if self.rustup_run_and_args:
rustup_exelist, args = self.rustup_run_and_args
# do not use extend so that exelist is copied
@@ -439,7 +439,7 @@ class RustCompiler(Compiler):
args = self.get_exe_args()
from ..programs import find_external_program
- for prog in find_external_program(env, self.for_machine, exelist[0], exelist[0],
+ for prog in find_external_program(self.environment, self.for_machine, exelist[0], exelist[0],
[exelist[0]], allow_default_for_cross=False):
exelist[0] = prog.path
break
@@ -457,7 +457,7 @@ class RustCompiler(Compiler):
@functools.lru_cache(maxsize=None)
def get_rustdoc(self, env: 'Environment') -> T.Optional[RustdocTestCompiler]:
- exelist = self.get_rust_tool('rustdoc', env)
+ exelist = self.get_rust_tool('rustdoc')
if not exelist:
return None