Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add -parse-as-library to Swift library targets #14267

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

2xsaiko
Copy link
Contributor

@2xsaiko 2xsaiko commented Feb 17, 2025

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.

@2xsaiko 2xsaiko force-pushed the push-twqpknzrwxsr branch 3 times, most recently from ea60112 to 6892c13 Compare February 17, 2025 18:49
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants