Open Kyle-Ye opened 3 months ago
You can currently use the experimental_mixed_language_library
in rules_apple to support this.
If the SE is ever implemented, or maybe before then, I believe we will move that rule into rules_swift and graduate it to non-experimental.
Haven't used experimental_mixed_language_library
before. But I'd like to use it in Linux and other platforms too. Does it support such use case?
The repo's name "rules_apple" is hinting me that it will only work for Apple's Darwin platform.
Checking the doc, the rule is about ObjectiveC + Swift. But the SE and my issue is about C and Swift not ObjectiveC specific.
The version that gets added to rules_swift would need to support C. For now you can probably write your own macro that uses cc_library instead of objc_library.
Swift has a SE to make SwiftPM support it. But it is currently "Returned for Revision".
I was wondering whether we have such feature supported on Bazel currently.