Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 584 Bytes

README-WASM.md

File metadata and controls

9 lines (7 loc) · 584 Bytes

Building Mata to WASM

In order to build Mata library to WASM, you need to have emscripten set up, along with all of its dependencies. You can use the system packages or consult emsdk. For building Mata to WASM then use the following steps:

  1. create folder build-wasm for the WASM build of libmata.a
  2. in build-wasm run emcmake cmake -DBUILD_TYPE=Release -DMATA_BUILD_EXAMPLES:BOOL=OFF -DBUILD_TESTING:BOOL=OFF ..
  3. build the library using emmake make (the WASM static library src/libmata.a should be created after that)