Skip to content

[5.5] cherry-pick recent ABI checker changes #39033

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 5 commits into from
Aug 27, 2021

Conversation

nkcsgexi
Copy link
Contributor

These ABI checker enhancements teach the tool to cover more Source/ABI breakages, such as removing import statements and moving members from one extension to another. They also teach -compile-module-from-interface action to emit ABI baseline as a byproduct, thus our existing prebuilt module generation mechanism could be easily enhanced to generate ABI baselines for entire SDKs.

#39010
#38979
#38969
#38943

Related: rdar://78276290

Removing an import statement can be potentially source-breaking. We should
prepare for diagnosing such case.
…criptor as byproduct

We have implemented a libSwiftDriver-based tool to generate prebuilt module cache for
entire SDKs. Anchored on the same infrastructure, we could also generate ABI baselines
for entire SDKs.
@nkcsgexi nkcsgexi requested a review from a team as a code owner August 24, 2021 23:10
@nkcsgexi
Copy link
Contributor Author

@swift-ci please test

@nkcsgexi
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 2de1653cdbcab055f55c985e7b1d9147b9445aac

nkcsgexi and others added 2 commits August 24, 2021 21:38
Moving generic constraint from extension to its member or vice versa may change the mangled name
of the member without changing the generic signature, thus introducing ABI breakages. This change
teaches the ABI checker to diagnose USR (mangled name) changes to cover such cases.

rdar://78276290
There is a reference to `std::string` being introduced without the necessary header being included.  Add the missing include.
@nkcsgexi
Copy link
Contributor Author

@swift-ci please test

@nkcsgexi nkcsgexi merged commit 9a93c18 into swiftlang:release/5.5 Aug 27, 2021
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.

4 participants