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

Cannot build with Cxx interop #4776

Open
kerimcharfi opened this issue Aug 13, 2022 · 1 comment
Open

Cannot build with Cxx interop #4776

kerimcharfi opened this issue Aug 13, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@kerimcharfi
Copy link

Describe the bug
Cannot compile simple Cxx interop hello world project, when -target wasm32-unknown-wasi is set.
This works:
swiftc helloword.swift -o ubu.wasm -enable-experimental-cxx-interop -I ./helloCxx -Xfrontend -validate-tbd-against-ir=none
This doesn't work:
swiftc -target wasm32-unknown-wasi helloword.swift -o ubu.wasm -enable-experimental-cxx-interop -I ./helloCxx -Xfrontend -validate-tbd-against-ir=none

Screenshots
image

Environment (please fill out the following information)

  • OS: Ubuntu 20.04 WSL
@kerimcharfi kerimcharfi added the bug Something isn't working label Aug 13, 2022
@kerimcharfi kerimcharfi changed the title Cyclic dependency with Cxx interop? Cannot build with Cxx interop Aug 15, 2022
@kateinoigakukun
Copy link
Member

I haven't took a look on cxx interop yet but looks like wasi-libc violates some assumptions of cxx-interop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants