Open kkebo opened 3 months ago
I encountered the same issue in swift-syntax, so I changed that line.
Rejecting calls to no-prototype declared functions sounds reasonable to me because WebAssembly has strict signature check. But crashing the compiler process is apparently problematic, it should emit diagnostics instead.
Description
The Swift compiler crashes when building a C target for
wasm32-unknown-wasi
. This issue doesn't seem to occur when building for other targets.Reproduction
For more detailed logs, please see the README.md:
https://github.com/kkk669/swiftwasm-no-prototype-example
Stack dump
Full logs: https://github.com/kkk669/swiftwasm-no-prototype-example
Expected behavior
Environment
Additional information
The following modification resolves the issue.
related links: