Skip to content

Commit

Permalink
Fix some options.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpakkane committed Jul 18, 2024
1 parent 06c9b91 commit 2ccdbcd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mesonbuild/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 2ccdbcd

Please sign in to comment.