diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-08-04 19:26:42 +0200 |
|---|---|---|
| committer | Dylan Baker <dylan@pnwbakers.com> | 2025-10-06 14:44:31 -0700 |
| commit | c6814b7cd54907128a4fb65159ed054b683157db (patch) | |
| tree | 13aeaa8ca7ce57bcf60c241bdfc4f2774c27d8bc /mesonbuild/compilers | |
| parent | 23828ced6810955e108aadd4ceb5fbf9c5965421 (diff) | |
| download | meson-c6814b7cd54907128a4fb65159ed054b683157db.tar.gz | |
options: replace get_value with get_value_for
The two methods are identical.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mesonbuild/compilers')
| -rw-r--r-- | mesonbuild/compilers/mixins/clike.py | 4 | ||||
| -rw-r--r-- | mesonbuild/compilers/mixins/emscripten.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/compilers/mixins/clike.py b/mesonbuild/compilers/mixins/clike.py index a492fffed..454f5fba8 100644 --- a/mesonbuild/compilers/mixins/clike.py +++ b/mesonbuild/compilers/mixins/clike.py @@ -361,8 +361,8 @@ class CLikeCompiler(Compiler): # linking with static libraries since MSVC won't select a CRT for # us in that case and will error out asking us to pick one. try: - crt_val = env.coredata.optstore.get_value('b_vscrt') - buildtype = env.coredata.optstore.get_value('buildtype') + crt_val = env.coredata.optstore.get_value_for('b_vscrt') + buildtype = env.coredata.optstore.get_value_for('buildtype') assert isinstance(crt_val, str), 'for mypy' assert isinstance(buildtype, str), 'for mypy' cargs += self.get_crt_compile_args(crt_val, buildtype) diff --git a/mesonbuild/compilers/mixins/emscripten.py b/mesonbuild/compilers/mixins/emscripten.py index 83534e11c..1af2236e9 100644 --- a/mesonbuild/compilers/mixins/emscripten.py +++ b/mesonbuild/compilers/mixins/emscripten.py @@ -50,7 +50,7 @@ class EmscriptenMixin(Compiler): def thread_link_flags(self, env: 'Environment') -> T.List[str]: args = ['-pthread'] - count = env.coredata.optstore.get_value(OptionKey(f'{self.language}_thread_count', machine=self.for_machine)) + count = env.coredata.optstore.get_value_for(OptionKey(f'{self.language}_thread_count', machine=self.for_machine)) assert isinstance(count, int) if count: args.append(f'-sPTHREAD_POOL_SIZE={count}') |
