binji / wasm-clang

Running Clang/LLD in WebAssembly Demo
https://binji.github.io/wasm-clang
Apache License 2.0
259 stars 27 forks source link

compiling compilers #18

Open Pro2stinger opened 9 months ago

Pro2stinger commented 9 months ago

could you provide a description of what everything does and how you compiled clang, llld, wasm-ld and memfs so others and me can add compilers such as emscripten to wasm?

binji commented 9 months ago

I wrote up some notes about my process in this gist: https://gist.github.com/binji/b7541f9740c21d7c6dac95cbc9ea6fca

I've also added it to README.md

Pro2stinger commented 9 months ago

I wrote up some notes about my process in this gist: https://gist.github.com/binji/b7541f9740c21d7c6dac95cbc9ea6fca

I've also added it to README.md

Thanks

CaveNightingale commented 7 months ago

Well, I try to compile the latest clang on the wasm32-wasi-threads platform, but after download and compile wasm-sdk I found that there is no stddef.h in sysroot. Do u have any idea?