Skip to content

Commit 7831864

Browse files
committed
[interop][docs] Add compiler requirement line to user guide for reverse interop
1 parent 954e89c commit 7831864

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/CppInteroperability/UserGuide-CallingSwiftFromC++.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ A Swift library author might want to expose their interface to C++, to allow a C
2525

2626
A Swift codebase is organized into units called modules. A module typically corresponds to a specific Xcode or Swift package manager target. Swift can generate a module interface file that presents a source view of the public Swift interface provided by the module. In addition to a Swift module interface, Swift can also generate a header file that contains C++ functions and classes that allow us to work with the Swift functions and types. We can import this header file into our C++ program to start using the Swift APIs from C++.
2727

28+
### Compiler Requirements
29+
30+
The header files generated by the Swift compiler can only be compiled by the Clang compiler, as
31+
the generated header relies on specific ABI attributes that are only supported by Clang.
32+
2833
### C++ Language And Library Requirements
2934

3035
Importing Swift APIs into C++ requires certain C++ features introduced in newer C++ language standards. The following C++ standards are expected to work:

0 commit comments

Comments
 (0)