-
Notifications
You must be signed in to change notification settings - Fork 321
Add module map for CSKTestSupport #2243
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
Add module map for CSKTestSupport #2243
Conversation
Create a module map for the CSKTestSupport module, exporting the header "CSKTestSupport.h". This allows for better modularization and encapsulation of the support functionalities. Signed-off-by: Maxwell Elliott <[email protected]>
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.
Out of curiosity: Which build system are you using that requires the module map?
My guess is bazel (?), but I'm still wondering why the modulemap is needed - nothing is importing CSKTestSupport, it's just being linked into SKTestSupport to not call static destructors. I assume the modulemap is there at all purely to appease SwiftPM. And if we do need to specify something in the module, my preference would be for it to still be empty rather than adding this header. There's no intention that anything would ever import and call this function. |
Signed-off-by: Maxwell Elliott <[email protected]>
This was done to support using this library via https://github.com/cgrindel/rules_swift_package_manager building with Bazel |
Signed-off-by: Maxwell Elliott <[email protected]>
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.
Thanks for clarifying our questions. I don’t see any reason not to add the module map, so happy to take it.
@swift-ci Please test |
@swift-ci Please test Windows |
3 similar comments
@swift-ci Please test Windows |
@swift-ci Please test Windows |
@swift-ci Please test Windows |
Create a module map for the CSKTestSupport module, exporting the header "CSKTestSupport.h". This allows for better modularization and encapsulation of the support functionalities.
Signed-off-by: Maxwell Elliott [email protected]
Existing SPM users appear to be not impacted, this change should not affect their builds
Some build systems cannot build this logic without this modulemap file being valid
Original PRs:
Risk:
Low
Does it build