bazelbuild / rules_swift

Bazel rules to build Swift on Apple and Linux platforms
Apache License 2.0
307 stars 133 forks source link

Add C++ Interoperability example #1280

Closed kersson closed 4 weeks ago

kersson commented 4 weeks ago

Extends the simple "counter" example from c_from_swift to show how to use the -cxx-interoperability-mode build flag to invoke C++ directly from Swift.

https://www.swift.org/documentation/cxx-interop/