mlua-rs / luau-src-rs

Source code and logic to build Roblox Luau for Rust
Other
8 stars 5 forks source link

Add emscripten support #1

Closed bytedream closed 11 months ago

bytedream commented 12 months ago

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).

khvzak commented 11 months ago

Thanks for the PR. I just merged a slightly more comprehensive implementation.