Skip to content

[Serialization] Serialize Clang types for non-modular headers. #34838

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

varungandhi-apple
Copy link
Contributor

Since frameworks have modularized headers, this is only a problem for app targets which use non-modular headers. Such an app target's swiftmodule may be used by a test module. If we have an @convention(c) function type with a non-trivial C type in such an app target, it is probably safe to serialize it optimistically and hope that the test target imports the same headers.

@varungandhi-apple
Copy link
Contributor Author

@swift-ci test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 4db46f3a71cb3a92ae107d94f70e757394c1c65f

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 4db46f3a71cb3a92ae107d94f70e757394c1c65f

@varungandhi-apple varungandhi-apple force-pushed the vg-serde-serialize-non-modular-clang-type branch from 4db46f3 to e69581c Compare November 20, 2020 06:32
@varungandhi-apple
Copy link
Contributor Author

@swift-ci please smoke test

@varungandhi-apple varungandhi-apple force-pushed the vg-serde-serialize-non-modular-clang-type branch from e69581c to 9ec87a7 Compare November 20, 2020 08:40
@varungandhi-apple
Copy link
Contributor Author

@swift-ci please smoke test

@varungandhi-apple
Copy link
Contributor Author

varungandhi-apple commented Nov 23, 2020

This causes a test failure when UseClangFunctionTypes is turned on, because we test for the old behavior.

@varungandhi-apple varungandhi-apple force-pushed the vg-serde-serialize-non-modular-clang-type branch from 9ec87a7 to 85d4d12 Compare November 23, 2020 19:07
@varungandhi-apple
Copy link
Contributor Author

@swift-ci please smoke test

Copy link
Contributor

@rjmccall rjmccall left a comment

Choose a reason for hiding this comment

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

Well, if this just magically works, ok.

@varungandhi-apple varungandhi-apple merged commit 3c00266 into swiftlang:main Nov 30, 2020
@varungandhi-apple varungandhi-apple deleted the vg-serde-serialize-non-modular-clang-type branch November 30, 2020 19:35
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