Skip to content
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

[6.1]Remove error for invalid swift caching configuration #1776

Conversation

cachemeifyoucan
Copy link
Contributor

  • Explanation: Currently, swift-driver emits an error when trying to importing a swift binary module that has a bridging header when swift caching is enabled. This turns out to be a very common configuration that we need to support. It turns out most of the time, allowing the compilation to continue will result in a successful compilation. Even though in rare occasions where multiple bridging headers from the dependencies are involved with overlapping content, the compilation is going to fail with confusing error message, we will address that in swift compiler instead.

  • Scope: Thus the current error message is removed to allow more supported projects.

  • Issues: rdar://142709084

  • Original PRs: Remove error for invalid swift caching configuration #1775

  • Risk: Low. Removing an error.

  • Testing: Added unit test.

  • Reviewers: @artemcm

Currently, swift-driver emits an error when trying to importing a swift
binary module that has a bridging header when swift caching is enabled.
This turns out to be a very common configuration that we need to
support.

It turns out most of the time, allowing the compilation to continue will
result in a successful compilation. Even though in rare occasions where
multiple bridging headers from the dependencies are involved with
overlapping content, the compilation is going to fail with confusing
error message, we will address that in swift compiler instead.

Thus the current error message is removed to allow more supported
projects.

(cherry picked from commit d091f6d)
@cachemeifyoucan cachemeifyoucan requested review from nkcsgexi, artemcm and a team January 10, 2025 22:38
@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please test

@cachemeifyoucan
Copy link
Contributor Author

@nkcsgexi ping

@cachemeifyoucan cachemeifyoucan merged commit 7cb8cf9 into swiftlang:release/6.1 Jan 17, 2025
3 checks passed
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