Can we still not mix Swift and C in a module?

I think your only options for inlining here would be to either compile the Swift module with C++ interop enabled (which is still somewhat unstable) so that you can put the definition in the header and ClangImporter can see it, or to leave it in the source file and rely on LTO (which I don't think is very well supported yet either) for the linker to optimize it.

2 Likes