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

🥼🧪💥 WASM build #149

Open
jaromil opened this issue Jan 8, 2023 · 0 comments
Open

🥼🧪💥 WASM build #149

jaromil opened this issue Jan 8, 2023 · 0 comments

Comments

@jaromil
Copy link
Member

jaromil commented Jan 8, 2023

Experimental build using emscripten to create WASM filters usable in Javascript

This is just an experiment and implies also the implementation of a static library build that renames all functions.

So far WASM builds of single static libs can be achieved with these commands (and emsdk setup in root project dir)

source ../emsdk/emsdk_env.sh
export CMAKE_TOOLCHAIN_FILE=`pwd`/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake
emcmake cmake .. -DCMAKE_C_FLAGS="-s EXPORTED_RUNTIME_METHODS='[\"cwrap\"]'" -DCMAKE_CXX_FLAGS="-s EXPORTED_RUNTIME_METHODS='[\"cwrap\"]'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant