Skip to content

Add modulemap for static compilation #544

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 1 commit into from
Aug 12, 2020

Conversation

drexin
Copy link
Contributor

@drexin drexin commented Aug 3, 2020

When compiling statically, we have to link against DispatchStubs in addition to the other dependencies, so we are defining a separate modulemap for that.

When compiling statically, we have to link against DispatchStubs in addition to the other dependencies, so we are defining a separate modulemap for that.
@drexin drexin requested a review from compnerd August 3, 2020 21:51
@drexin
Copy link
Contributor Author

drexin commented Aug 3, 2020

@swift-ci test linux

Copy link
Member

@compnerd compnerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the dispatch module required? This is the swift module which will encode the auto link information and be handled via auto-link extract no?

@drexin
Copy link
Contributor Author

drexin commented Aug 6, 2020

@compnerd The only difference between the existing modulemap and the new one is

link "DispatchStubs"

otherwise they are exactly the same. So as to why it is required, I don't know.

@compnerd
Copy link
Member

Oh, I get it. Its for the autolinking to its dependencies from the Swift module. LGTM with grumbling.

@drexin drexin merged commit f152471 into swiftlang:master Aug 12, 2020
rokhinip pushed a commit that referenced this pull request Nov 5, 2021
Add modulemap for static compilation

Signed-off-by: Rokhini Prabhu <rokhinip@apple.com>
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.

3 participants