Skip to content

Commit

Permalink
python: simplify get_windows_link_args build_config key calculation
Browse files Browse the repository at this point in the history
Signed-off-by: Filipe Laíns <[email protected]>
  • Loading branch information
FFY00 committed Jan 20, 2025
1 parent 8f48a9d commit 3fb6847
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mesonbuild/dependencies/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,10 @@ def get_windows_link_args(self, limited_api: bool) -> T.Optional[T.List[str]]:
if self.build_config:
if self.static:
key = 'static'
elif limited_api:
key = 'dynamic-stableabi'
else:
key = 'dynamic'
if limited_api:
key += '-stableabi'

if key not in self.build_config['libpython']:
mlog.log(f'Python does not provide a {key} libpython')
Expand Down

0 comments on commit 3fb6847

Please sign in to comment.