The CodeGen module cannot be compiled with wasm because it's missing some features LLVM generates. Currently there is no indicator that CodeGen isn't compatible with wasm, when trying the compilation just fails with a compile error (error in backend: llvm.clear_cache is not supported on wasm + a bunch of warnings after that).
This PR adds support for the emscripten target.
The
CodeGen
module cannot be compiled with wasm because it's missing some features LLVM generates. Currently there is no indicator that CodeGen isn't compatible with wasm, when trying the compilation just fails with a compile error (error in backend: llvm.clear_cache is not supported on wasm
+ a bunch of warnings after that).