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

[SR-12809] Implement --emit-swift-module-separately in SwiftDriver for use in SwiftPM #4549

Open
DougGregor opened this issue May 13, 2020 · 1 comment
Labels

Comments

@DougGregor
Copy link
Member

Previous ID SR-12809
Radar rdar://problem/63201448
Original Reporter @DougGregor
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: 8427529cd7dc6771ae26950dbb37ca48

Issue Description:

SwiftPM has an option to emit the .swiftmodule for a particular target as a separate -emit-module action, rather than generating partial .swiftmodules and then calling invoking the merge-modules phase. SwiftPM does so by forming two different invocations of the Swift driver, which is suboptimal both because it puts a lot of this logic directly into SwiftPM and because there is extra overhead in having two distinct Swift driver instances for the same task.

We should implement --emit-swift-module-separately in the new Swift driver, then teach SwiftPM to pass --emit-swift-module-separately into the integrated Swift driver. This centralizes the logic for --emit-swift-module-separately and lets the new Swift driver implement the proper dependency graph.

@DougGregor
Copy link
Member Author

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants