Skip to content

Conversation

beccadax
Copy link
Contributor

This is a new warning in clang when you use @import in a framework header. That’s often a mistake, but it isn’t in our generated -Swift.h headers. If we’re building with a clang that supports this warning, we’ll now emit a pragma to disable it.

Fixes rdar://41552597.

Important when we’re testing features which are only in the new clang.
@beccadax beccadax requested a review from jrose-apple October 26, 2018 23:00
The atimport-in-framework-header warning is only actually emitted if the header’s path looks like it’s in a framework. We don’t have a test like that, but mixed-framework.swift probably *ought* to be like that, so if we make it more realistic, it will suit our purposes.
@beccadax
Copy link
Contributor Author

@swift-ci please smoke test

@beccadax
Copy link
Contributor Author

@jrose-apple Okay with merging this?

@jrose-apple
Copy link
Contributor

Ah, yeah, sorry, those were my only remaining comments.

@jrose-apple
Copy link
Contributor

Thanks for taking this!

@beccadax
Copy link
Contributor Author

@swift-ci please smoke test and merge

@beccadax
Copy link
Contributor Author

beccadax commented Nov 2, 2018

@swift-ci please smoke test linux platform

1 similar comment
@shahmishal
Copy link
Member

@swift-ci please smoke test linux platform

@beccadax
Copy link
Contributor Author

beccadax commented Nov 3, 2018

XCTest failure of an async test, so there's every reason to believe it's spurious.

@beccadax
Copy link
Contributor Author

beccadax commented Nov 3, 2018

@swift-ci please smoke test linux platform

@beccadax beccadax merged commit 746fb28 into swiftlang:master Nov 3, 2018
@beccadax beccadax deleted the universal-imports branch November 3, 2018 02:02
milseman pushed a commit to milseman/swift that referenced this pull request Nov 4, 2018
…ated headers (swiftlang#20086)

This is a new warning in clang when you use @import in a framework header. That’s often a mistake, but it isn’t in our generated -Swift.h headers. If we’re building with a clang that supports this warning, we’ll now emit a pragma to disable it.
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