diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2025-11-12 10:34:05 -0800 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-11-19 10:48:48 -0800 |
| commit | 6e081df405cfba85130ccd239f10ad769db8a34a (patch) | |
| tree | 686c27376b44bb293432343effb06d9d1127f347 /mesonbuild/compilers/rust.py | |
| parent | ca15ed8f73e6b8c0cad81bee119c5c099e066767 (diff) | |
| download | meson-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.py | 4 |
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) |
