-
Notifications
You must be signed in to change notification settings - Fork 50
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
Doubts regarding compiling CppInterOp using emscripten #1402
Comments
Starting with the doubts
So technically as can be seen on xeus-cpp's master we have
But installing llvm from emscripten-forge and using clanginterpreter tackles the undefined symbols
But technically we want these symbols to be exposed from Now as can be seen in this file we have the following
As can be in seen in the cmakelists.txt file above we also need to also link against Now what I notice is the linking (
And doesn't reference the libraries or the emscripten based flags passed. Building with
So under the hood we are trying to replicate argentite's script which is basically linking with lldwasm & clangintepreter and providing the flags but the generated |
P.S I also removed add_llvm_library and simply did the following just to check but I might not be linking it the correct way.
So technically taking up any undefined symbol from the list, we might want to check if the link has happened perfectly
|
That being said the exact operation through |
Context for anyone interested.
@argentite was able to run
clang-repl
in the browser and this is how we was able to accomplish thisllvm
(clang, lld) foremscripten-wasm32
CompilerModule.cpp
(some simple code calling Clang-Repl's Parse & Execute )For my use case, we just have 1 more layer of abstractions as compared to the 2 above
Xeus-Cpp, CppInterOp and llvm. In our case
libclanginterpreter.a
andliblldwasm.a
) so this part is done.The text was updated successfully, but these errors were encountered: