Skip to content

Commit 2c1b99e

Browse files
committed
python: simplify get_windows_link_args build_config key calculation
Signed-off-by: Filipe Laíns <[email protected]>
1 parent eaf795b commit 2c1b99e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mesonbuild/dependencies/python.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,10 +254,10 @@ def get_windows_link_args(self, limited_api: bool) -> T.Optional[T.List[str]]:
254254
if self.build_config:
255255
if self.static:
256256
key = 'static'
257+
elif limited_api:
258+
key = 'dynamic-stableabi'
257259
else:
258260
key = 'dynamic'
259-
if limited_api:
260-
key += '-stableabi'
261261

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

0 commit comments

Comments
 (0)