Skip to content

The LLVM codegen doesn't support the wasm target

Right now, the LLVM codegen doesn't support the wasm target yet, it would fail with:

<no location info>: error:
    panic! (the 'impossible' happened)
  GHC version 9.7.20230201:
	Failed to lookup LLVM data layout
  Target: wasm32-unknown-wasi
  Available targets:

Thus this tracking ticket. Marking this as a low-priority feature request instead of a bug at the moment. It'll take some time to look into the LLVM codegen logic and figure out how to teach the wasm NCG's calling convention to it.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information