-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #474 from VeriFIT/wasm-build
Support of the WASM build #patch
- Loading branch information
Showing
4 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,7 +108,7 @@ public: | |
} | ||
|
||
if (elem) | ||
--elem->counter_; | ||
--elem->refcount_; | ||
} | ||
|
||
template <class Deleter> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
## 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](https://github.com/emscripten-core/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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters