Skip to content

Change all library types to automatic #1545

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

Merged
merged 2 commits into from
May 2, 2023

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Apr 14, 2023

automatic and static currently have the same behavior in SwiftPM and we should allow flexibility here, there’s no reason to specify that the libraries need to be static.

@ahoppen ahoppen changed the title Change all library types to automatic Change all library types to automatic 🚥 #1541 Apr 14, 2023
@ahoppen ahoppen force-pushed the ahoppen/automatic-libraries branch from 065abe6 to 16a55b7 Compare April 15, 2023 21:08
@ahoppen ahoppen changed the title Change all library types to automatic 🚥 #1541 Change all library types to automatic Apr 15, 2023
@ahoppen
Copy link
Member Author

ahoppen commented Apr 15, 2023

@swift-ci Please test

`automatic` and `static` currently have the same behavior in SwiftPM and we should allow flexibility here, there’s no reason to specify that the libraries need to be `static`.
@ahoppen ahoppen force-pushed the ahoppen/automatic-libraries branch from 16a55b7 to 1acbfc3 Compare April 29, 2023 15:12
@ahoppen
Copy link
Member Author

ahoppen commented Apr 29, 2023

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Apr 29, 2023

@swift-ci Please test Windows

@ahoppen
Copy link
Member Author

ahoppen commented May 2, 2023

@swift-ci Please test

We can’t build library products if they have library type `automatic`. Instead build their targets.

While doing that, I defined a fake target that depends on all targets in the SwiftSyntax package. This way, we can build all targets concurrently, before we were only building `SwiftSyntax` and `SwiftSyntaxBuilder` sequentially. All other targets only got build when running tests.
@ahoppen ahoppen force-pushed the ahoppen/automatic-libraries branch from 09e4511 to a4d2e79 Compare May 2, 2023 17:48
@ahoppen
Copy link
Member Author

ahoppen commented May 2, 2023

@swift-ci Please test

@kimdv
Copy link
Contributor

kimdv commented May 2, 2023

@swift-ci please test windows

@ahoppen ahoppen requested a review from bnbarham May 2, 2023 21:48
@ahoppen ahoppen merged commit 088fc49 into swiftlang:main May 2, 2023
@ahoppen ahoppen deleted the ahoppen/automatic-libraries branch May 2, 2023 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants