forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mobile: add flag to build Swift with `-enable-experimental-cxx-intero…
…p` (envoyproxy#25971) The Swift project has had experimental C++ interoperability support for a few years now. For example, a [workgroup](https://forums.swift.org/t/swift-and-c-interoperability-workgroup-announcement/54998/1) was started in early 2022. C++ interop is considered experimental because it requires passing an additional flag to the Swift compiler (`-enable-experimental-cxx-interop`) and the feature has no source or ABI stability guarantees. Envoy Mobile in particular would benefit greatly from Swift / C++ interop because it would allow us to shed the intermediate Objective-C layer that only exists to bridge Envoy's C++ APIs with the consumer- facing Swift API. This change proposes a build flag to optionally build the Swift parts of Envoy Mobile with C++ interop enabled, and enables it by default. Future changes will gradually add Swift code that interacts directly with C++ APIs. Please read the [C++ Interoperability Status](https://github.com/apple/swift/blob/main/docs/CppInteroperability/CppInteroperabilityStatus.md) to learn more about the current state of things. Signed-off-by: JP Simard <[email protected]>
- Loading branch information
Showing
7 changed files
with
39 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters