awslabs / aws-crt-swift

Apache License 2.0
15 stars 19 forks source link

aws-crt-swift crashes when used together with swiftc flag -enable-experimental-cxx-interop #166

Open PeterWaIIace opened 1 year ago

PeterWaIIace commented 1 year ago

Describe the bug

aws-cert-swift crashes when used together with swiftc flag -enable-experimental-cxx-interop.

It finds problem with using of .inl files together with C files.

image

Example error: Import of C++ module 'AwsCCommon' appears within extern "C" language linkage specification

As it is experimental feature, do not expect immediate bug fix but it would be extremely nice to be able to use swift packages together with Cpp sources.

Expected Behavior

Successful compilation.

Current Behavior

image

Reproduction Steps

add to swift compiler flags: -enable-experimental-cxx-interop

Possible Solution

No response

Additional Information/Context

No response

AWS CRT SWIFT version used

0.4.0

Compiler and Version used

Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)

Operating System and version

macosx13.0

waahm7 commented 1 year ago

Hi,

Thank you for creating the issue. We will look into this issue and let you know as soon as there is any update.

subdiox commented 5 months ago

It's still occurring on Xcode 15.4, with swiftSettings: [.interoperabilityMode(.Cxx)] option. C++ interoperability has officially been released, so it would be appreciated if you support it.

waahm7 commented 5 months ago

Thank you for the update. Please 👍 the original issue as it will help us prioritize this among other things.