meson icon indicating copy to clipboard operation
meson copied to clipboard

Add -parse-as-library to Swift library targets

Open dblsaiko opened this issue 1 year ago • 0 comments

swiftc adds a main function consisting of top-level statements to objects generated by a swiftc invocation with a single input file, leading to duplicate symbols when linking the final executable (in case of a static library). This argument prevents this from happening, apply it to library targets automatically.

dblsaiko avatar Feb 17 '25 17:02 dblsaiko