mesonbuild / meson

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

Missing support for Swift dynamic library targets #13203

Open pbrzez opened 1 month ago

pbrzez commented 1 month ago

Currently Meson complains with with ERROR: Swift supports only executable and static library targets when attempting to build a dynamic library target with swiftc.

swiftc of course supports outputting dynamic libraries - it's even the default option when using -emit-library, making static libraries requires adding the -static flag as well.

Would be nice to get rid of this strange limitation.