-
Notifications
You must be signed in to change notification settings - Fork 657
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
Cxx interop problem #3093
Comments
Thanks for filing this! Is this the only change required to get things to build on your end? If so, then I think there are two steps. First, ideally you'd file a bug report on llparse, which generates the header file. The include comes from here, and could easily be guarded appropriately. Secondly, we can apply a patch to the generated code here to get this to work. |
It is the only change to get the debugger working again on my end. I will get started on the suggested next steps. Thanks. |
No problem, please let me know if you need any help. |
Issue created over at llparse: nodejs/llparse#71 |
Expected behavior
Using
swift-nio
package in a project with Cxx interop enabled builds, runs, and is debuggable.Actual behavior
Using
swift-nio
package in a project with Cxx interop enabled builds and runs but renders debugger unusable with following error:Locally modifying
c_nio_llhttp.h
as follows builds, runs, and is debuggable:Steps to reproduce
I have attempted a standalone repro without success so far. The project in which I've enabled Cxx interop is a sizeable legacy project that is a mix of
UIKit
andSwiftUI
.At the project level I have added
-cxx-interoperability-mode=default -Xcc -std=c++17
to theOTHER_SWIFT_FLAGS
build setting. I have one local package that depends ongrpc-swift
which transitively depends onswift-nio
and this local package does not enable Cxx interop. I have another local package that depends on a remote package that requires Cxx interop and is usingswiftSettings: [.interoperabilityMode(.Cxx)]
on the target definition andcxxLanguageStandard: .cxx17
on the package definition.If possible, minimal yet complete reproducer code (or URL to code)
No minimal standalone repro yet.
SwiftNIO version/commit hash
2.78.0
System & version information
Please provide at the very least your operating system and Swift version
information.
macOS:
14.7.1
Swift:
5.9
Xcode:
16.2 (16C5032a)
Ideally, run
and attach (or paste) the resulting file
nio-diagnose.md
into this bug reportor send it to the SwiftNIO maintainers privately.
The text was updated successfully, but these errors were encountered: