Adjusted dynamic library extension for Windows (which is also .lib).

This commit is contained in:
Patrick 2025-07-08 18:39:43 +02:00
parent b47ceb81dc
commit 7916566d47

View File

@ -255,11 +255,7 @@ def _lib_filename(env: Environment, name: str, type: str = 'static') -> str:
}[type] }[type]
return f'lib{name}.{ext}' return f'lib{name}.{ext}'
elif os.name == 'nt': elif os.name == 'nt':
ext = { return f'{name}.lib'
'static': 'lib',
'shared': 'dll'
}[type]
return f'{name}.{ext}'
else: else:
raise Exception('What OS is this?') raise Exception('What OS is this?')