Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PeterWaIIace opened this issue Feb 24, 2023 · 3 comments
Labels
feature-request A feature should be added or improved. needs-investigation This issue needs investigation.

Comments

@PeterWaIIace
Copy link

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

@PeterWaIIace PeterWaIIace added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Feb 24, 2023
@waahm7
Copy link
Contributor

waahm7 commented Feb 24, 2023

Hi,

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

@waahm7 waahm7 added feature-request A feature should be added or improved. and removed bug This issue is a bug. labels Feb 24, 2023
@ganeshnj ganeshnj changed the title aws-cert-swift crashes when used together with swiftc flag -enable-experimental-cxx-interop aws-crt-swift crashes when used together with swiftc flag -enable-experimental-cxx-interop Mar 13, 2023
@ganeshnj ganeshnj added needs-investigation This issue needs investigation. and removed needs-triage This issue or PR still needs to be triaged. labels Mar 13, 2023
@subdiox
Copy link

subdiox commented May 28, 2024

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
Copy link
Contributor

waahm7 commented May 30, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved. needs-investigation This issue needs investigation.
Projects
None yet
Development

No branches or pull requests

4 participants