Portability: Updated to make main re-entrant()
- New INSTALL instructions to emscripten, and AUTHORS for contribution.
This commit is contained in:
committed by
Paul Beckingham
parent
cae3f06b7d
commit
7af6db4c17
8
INSTALL
8
INSTALL
@@ -158,6 +158,14 @@ OpenBSD
|
||||
|
||||
See: https://bug.tasktools.org/browse/TW-1579
|
||||
|
||||
WASM
|
||||
Using the Emscripten compiler, you can achieve it like this:
|
||||
|
||||
cmake -DCMAKE_CXX_COMPILER=emcc -DENABLE_SYNC=OFF -DCMAKE_BUILD_TYPE=release -DENABLE_WASM=ON \
|
||||
-DCMAKE_EXE_LINKER_FLAGS="-m32 -s NO_DYNAMIC_EXECUTION=1 -s WASM=1 -s NO_EXIT_RUNTIME=1 -s INVOKE_RUN=0" \
|
||||
-DCMAKE_CXX_FLAGS_RELEASE="-O2 -m32"
|
||||
|
||||
This will produce an optimized WASM with a main() that is callable multiple times.
|
||||
|
||||
Troubleshooting
|
||||
---------------
|
||||
|
||||
Reference in New Issue
Block a user