swift icon indicating copy to clipboard operation
swift copied to clipboard

Cannot build with Cxx interop

Open kerimcharfi opened this issue 3 years ago • 1 comments

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 avatar Aug 13 '22 22:08 kerimcharfi

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

kateinoigakukun avatar Aug 17 '22 07:08 kateinoigakukun