diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2024-07-12 13:37:43 +0300 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2024-07-12 15:53:15 +0300 |
| commit | f15963194f50c08b3bef4cbf454bb54937d1ea19 (patch) | |
| tree | 315fa87e787cb4b93157f5f0c7d74afb94b2b356 /mesonbuild/compilers/rust.py | |
| parent | f978b26fd6718cbf7fc178174352c46eae779e23 (diff) | |
| download | meson-f15963194f50c08b3bef4cbf454bb54937d1ea19.tar.gz | |
Rename langopt method
The public facing name of language options is compiler option, so
let's standardise on that.
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 7c5bf529b..7bcab3ab4 100644 --- a/mesonbuild/compilers/rust.py +++ b/mesonbuild/compilers/rust.py @@ -160,7 +160,7 @@ class RustCompiler(Compiler): def get_options(self) -> MutableKeyedOptionDictType: return dict((self.create_option(options.UserComboOption, - self.form_langopt_key('std'), + self.form_compileropt_key('std'), 'Rust edition to use', ['none', '2015', '2018', '2021'], 'none'),)) @@ -173,7 +173,7 @@ class RustCompiler(Compiler): def get_option_compile_args(self, options: 'KeyedOptionDictType') -> T.List[str]: args = [] - key = self.form_langopt_key('std') + key = self.form_compileropt_key('std') std = options.get_value(key) if std != 'none': args.append('--edition=' + std) |
