Skip to content

[PackageLoading] Handle header files in TargetSourcesBuilder #2555

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
Feb 8, 2020

Conversation

aciidgh
Copy link
Contributor

@aciidgh aciidgh commented Feb 6, 2020

Since header files are allowed to be mixed with sources, it makes sense
to handle them inside the target sources builder. This allow us to not
special case the public headers directory which can lead to weird edge
cases with previously supported layouts. This patch also adds two more
things 1) diagnostics for duplicate declaration in sources parameter 2)
move the explicit resources check to the vNext tools version as
resources isn't a Swift 5.2 feature.

rdar://problem/56783465

Since header files are allowed to be mixed with sources, it makes sense
to handle them inside the target sources builder. This allow us to not
special case the public headers directory which can lead to weird edge
cases with previously supported layouts. This patch also adds two more
things 1) diagnostics for duplicate declaration in sources parameter 2)
move the explicit resources check to the vNext tools version as
resources isn't a Swift 5.2 feature.

<rdar://problem/56783465>
@aciidgh
Copy link
Contributor Author

aciidgh commented Feb 7, 2020

@swift-ci smoke test

@aciidgh aciidgh merged commit 817cc12 into swiftlang:master Feb 8, 2020
@aciidgh aciidgh deleted the handle-public-header branch February 8, 2020 19:28
@dreampiggy
Copy link

dreampiggy commented Feb 28, 2020

Hi, @aciidb0mb3r

Will Xcode 11.4.0 official release with this PR ? I'm a open source project maintainer of SDWebImage and our Swift Package Manager integration get broken because of this issue in the Xcode 11.4-beta...

Thanks for your help in advance.

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.

2 participants