Skip to content

[Modularization] Only include cstd headers when building CoreFoundation #4599

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

Closed
wants to merge 1 commit into from

Conversation

bnbarham
Copy link
Contributor

@bnbarham bnbarham commented Jun 3, 2022

Including these headers results in improper modularization as both
SwiftGlibc and CoreFoundation will include these headers. In particular,
in_addr from netinet/in.h is currently causing issues when building
on Linux in Swift rebranch.

Including these headers results in improper modularization as both
SwiftGlibc and CoreFoundation will include these headers. In particular,
`in_addr` from `netinet/in.h` is currently causing issues when building
on Linux in Swift rebranch.
@bnbarham bnbarham requested review from millenomi, compnerd and xymus June 3, 2022 21:23
@bnbarham
Copy link
Contributor Author

bnbarham commented Jun 3, 2022

@swift-ci please test

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.

Thanks! This is a good idea - Foundation already does an @_exported import Glibc so these should be provided for already via that module and be owned by that module.

Please to get @millenomi to take a look at this as well.

CC: @millenomi

@bnbarham
Copy link
Contributor Author

This ended up not being a real issue after I fixed a commit in clang that was merged to next incorrectly.

@bnbarham bnbarham closed this Jun 28, 2022
@bnbarham bnbarham deleted the fix-linux-inaddr-failure branch June 28, 2022 23:23
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