| Issue |
175907
|
| Summary |
[clang-repl] Drop ORC JIT as a dependecy for clangInterpreter's wasm build
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
anutosh491
|
This has been under discussion since quite some time. What we realize is running clang-repl in the browser doesn't need ORC JIT as the wasm based incremental executor puts emscripten's dlopen mechanism to use.
As can be seen in the cmake, we still compile all of ORCJIT for wasm and link it into clangInterpreter causing uneccessary bloat.
https://github.com/llvm/llvm-project/blob/fc81a665133fe757741d68f07245d5f696a65346/clang/lib/Interpreter/CMakeLists.txt#L1-L14
I could find some ways to get past this. Spamming lot of ifdef's in itself checking if the build is for a native platform vs wasm is a way but this was a cleaner way forward.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs