diff options
| author | Dylan Baker <dylan@pnwbakers.com> | 2025-10-31 10:58:43 -0700 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-11-19 10:48:48 -0800 |
| commit | e6a8aea750a0eafe26e5470fa5c33eb1e61b768b (patch) | |
| tree | fc0c0a0a32802958f84de5289e8ac78c73816db0 /mesonbuild/compilers/rust.py | |
| parent | 377fde5cf1ad8aa31c8731efabad13c1b49dbee2 (diff) | |
| download | meson-e6a8aea750a0eafe26e5470fa5c33eb1e61b768b.tar.gz | |
compilers: Remove Environment parameter from get_compileropt_value
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 a6954f866..0faf2cf96 100644 --- a/mesonbuild/compilers/rust.py +++ b/mesonbuild/compilers/rust.py @@ -154,7 +154,7 @@ class RustCompiler(Compiler): # This is done here because it's the only place we have access to # environment object, and sanity_check() is called after the compiler # options have been initialized. - nightly_opt = self.get_compileropt_value('nightly', environment, None) + nightly_opt = self.get_compileropt_value('nightly', None) if nightly_opt == 'enabled' and not self.is_nightly: raise EnvironmentException(f'Rust compiler {self.name_string()} is not a nightly compiler as required by the "nightly" option.') self.allow_nightly = nightly_opt != 'disabled' and self.is_nightly @@ -329,7 +329,7 @@ class RustCompiler(Compiler): def get_option_std_args(self, target: BuildTarget, env: Environment, subproject: T.Optional[str] = None) -> T.List[str]: args = [] - std = self.get_compileropt_value('std', env, target, subproject) + std = self.get_compileropt_value('std', target, subproject) assert isinstance(std, str) if std != 'none': args.append('--edition=' + std) |
