Skip to content

Remove error for invalid swift caching configuration #1775

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

cachemeifyoucan
Copy link
Contributor

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.

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.
@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please test

@cachemeifyoucan
Copy link
Contributor Author

@swift-ci please test windows platform

@cachemeifyoucan cachemeifyoucan merged commit 3da0373 into swiftlang:main Jan 10, 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