From 2ccdbcd0578b86870fcef0c044af2630ea577b78 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Thu, 6 Jun 2024 00:01:43 +0300 Subject: [PATCH] Fix some options. --- mesonbuild/build.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 47dbfb2aeed9..71b40897e94f 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -1914,9 +1914,9 @@ def __init__( environment: environment.Environment, compilers: T.Dict[str, 'Compiler'], kwargs): - key = OptionKey('b_pie') - if 'pie' not in kwargs and key in environment.coredata.optstore: - kwargs['pie'] = environment.coredata.optstore.get_value(key) + key = options.OptionParts('b_pie') + if 'pie' not in kwargs and environment.coredata.optstore.has_option(key): + kwargs['pie'] = environment.coredata.optstore.get_value_for(key) super().__init__(name, subdir, subproject, for_machine, sources, structured_sources, objects, environment, compilers, kwargs) self.win_subsystem = kwargs.get('win_subsystem') or 'console'