Skip to content

Commit 19d3e4d

Browse files
tangalbert919jpakkane
authored andcommitted
docs: Document Swift/C++ interoperability feature
1 parent a489e94 commit 19d3e4d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## Swift/C++ interoperability is now supported
2+
3+
It is now possible to create Swift executables that can link to C++ or
4+
Objective-C++ libraries. Only specifying a bridging header for the Swift
5+
target is required.
6+
7+
Swift 5.9 is required to use this feature. Xcode 15 is required if the
8+
Xcode backend is used.
9+
10+
```meson
11+
lib = static_library('mylib', 'mylib.cpp')
12+
exe = executable('prog', 'main.swift', 'mylib.h', link_with: lib)
13+
```

0 commit comments

Comments
 (0)