-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Clang Importer] Set IsSystem module flag for Clang input files when precompiling a clang module #34297
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
Conversation
@swift-ci please test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a test that builds one of the Warnings*
modules in test/ClangImporter/Inputs/cusom-modules/module.map
, with and without the -fsystem-module
flag, and verifies that diagnostics are only emitted when the flag is not present, to make sure we never accidentally drop this flag?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable to me! Is there any way we could add a test for this to prevent future regression? If not in the compiler repo, we could also add a test to the swift-driver repo instead.
cf862b3
to
9fd82f7
Compare
@swift-ci please test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks for addressing this!
Build failed |
9fd82f7
to
e0d3cfa
Compare
@swift-ci please smoke test |
@swift-ci please smoke test macOS Platform |
@swift-ci please smoke test Windows Platform |
@swift-ci please smoke test macOS Platform |
@swift-ci please smoke test macOS Platform |
@swift-ci please smoke test Windows Platform |
@swift-ci please smoke test macOS Platform |
@swift-ci please smoke test Windows Platform |
@swift-ci please smoke test macOS Platform |
@swift-ci please smoke test Windows Platform |
…precompiling a clang module This bit is important when we are pre-building system modules to be loaded later in Explicit Module Builds.
e0d3cfa
to
7ce04dc
Compare
@swift-ci please smoke test |
@swift-ci please smoke test Windows Platform |
This flag is important when we are pre-building system modules to be loaded later in Explicit Module Builds.
Resolves rdar://70212660