summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/rust.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2025-11-12 10:34:05 -0800
committerDylan Baker <dylan@pnwbakers.com>2025-11-19 10:48:48 -0800
commit6e081df405cfba85130ccd239f10ad769db8a34a (patch)
tree686c27376b44bb293432343effb06d9d1127f347 /mesonbuild/compilers/rust.py
parentca15ed8f73e6b8c0cad81bee119c5c099e066767 (diff)
downloadmeson-6e081df405cfba85130ccd239f10ad769db8a34a.tar.gz
compilers: Remove Environment parameter from Compiler.has_multi_arguments
Diffstat (limited to 'mesonbuild/compilers/rust.py')
-rw-r--r--mesonbuild/compilers/rust.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/compilers/rust.py b/mesonbuild/compilers/rust.py
index de2ab8d95..f41eae948 100644
--- a/mesonbuild/compilers/rust.py
+++ b/mesonbuild/compilers/rust.py
@@ -448,10 +448,10 @@ class RustCompiler(Compiler):
return exelist + args
- def has_multi_arguments(self, args: T.List[str], env: Environment) -> T.Tuple[bool, bool]:
+ def has_multi_arguments(self, args: T.List[str]) -> T.Tuple[bool, bool]:
return self.compiles('fn main() { std::process::exit(0) }\n', extra_args=args, mode=CompileCheckMode.COMPILE)
- def has_multi_link_arguments(self, args: T.List[str], env: Environment) -> T.Tuple[bool, bool]:
+ def has_multi_link_arguments(self, args: T.List[str]) -> T.Tuple[bool, bool]:
args = rustc_link_args(self.linker.fatal_warnings()) + args
return self.compiles('fn main() { std::process::exit(0) }\n', extra_args=args, mode=CompileCheckMode.LINK)