Hacker News new | ask | show | jobs
by syrusakbary 1528 days ago
This is really awesome, good work!

We did a similar thing running Clang on the browser, which is now uploaded to WAPM: https://wapm.io/syrusakbary/clang

1 comments

Excellent, I wonder if using a two year old LLVM fork is still required, wasm support should be in trunk by now.
Running Clang with WASI requires compiling LLVM to WASI first, which unfortunately currently requires a fork (because of the "hackyness" of it, as some syscalls are mocked or certain code is just skipped).

This talk from Ben Smith goes into a bit more depth on what was required to change on LLVM to compile to WASI: https://www.youtube.com/watch?v=5N4b-rU-OAA