mesonbuild / meson

The Meson Build System
http://mesonbuild.com
Apache License 2.0
5.51k stars 1.6k forks source link

shared_module creates import library on MinGW #12372

Open kmilos opened 11 months ago

kmilos commented 11 months ago

Describe the bug When building Python packages using MinGW, import libraries (.dll.a) are created in addition to the .pyd extensions.

See e.g. https://github.com/msys2/MINGW-packages/pull/18706#issuecomment-1747098489

Expected behavior shared_module() should not produce .dll.a import library artifact on MinGW like a shared_library() does, only the shared object itself

system parameters

kmilos commented 10 months ago

This doesn't seem to be exclusive to Python modules, it looks like shared_module does this in general.