Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could you please provide guides for building clang to wasm? #3

Open
guyutongxue opened this issue Jan 28, 2024 · 1 comment
Open

Could you please provide guides for building clang to wasm? #3

guyutongxue opened this issue Jan 28, 2024 · 1 comment

Comments

@guyutongxue
Copy link

Hello! I'm interested in your project (for detailed guide of building LLVM on WASM). I noticed that the GitHub Page is using clang-wasm branch which includes a clang.wasm, but the README only shows how to build llc / lld.

In detail, I'm trying to build clangd language server and face some issues on finding Standard C/C++ library headers in Emscripten FS. Could you tell me how to embed (and how to find) those C/C++ headers to WASM? Seems that the original README just embedding lib folder is not a correct approach for clang.

Thank you!

@soedirgo
Copy link
Owner

Hi! Yes, the README needs some updating - it was initially only for llc & lld, but the demo page uses clang instead of llc. IIRC clang was compiled as part of building llc & lld so I only had to export clang.* - will check again.

I haven't compiled clangd though, that'd be interesting to try!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants