Skip to content

Commit e653e16

Browse files
authored
Update build instructions for WASM (#1622)
Emscripten uses static linking, so we should explicitly request a static TBB library instead of * explicitly asking for shared (current instructions) * using the default, i.e., shared Both of the above get overridden with multiple warnings.
1 parent 8a14e3c commit e653e16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WASM_Support.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ To build the system, run:
3333

3434
```
3535
mkdir build && cd build
36-
emcmake cmake .. -DCMAKE_CXX_COMPILER=em++ -DCMAKE_C_COMPILER=emcc -DTBB_STRICT=OFF -DCMAKE_CXX_FLAGS=-Wno-unused-command-line-argument -DTBB_DISABLE_HWLOC_AUTOMATIC_SEARCH=ON -DBUILD_SHARED_LIBS=ON -DTBB_EXAMPLES=ON -DTBB_TEST=ON
36+
emcmake cmake .. -DCMAKE_CXX_COMPILER=em++ -DCMAKE_C_COMPILER=emcc -DTBB_STRICT=OFF -DCMAKE_CXX_FLAGS=-Wno-unused-command-line-argument -DTBB_DISABLE_HWLOC_AUTOMATIC_SEARCH=ON -DBUILD_SHARED_LIBS=OFF -DTBB_EXAMPLES=ON -DTBB_TEST=ON
3737
```
3838
To compile oneTBB without ``pthreads``, set the flag ``-DEMSCRIPTEN_WITHOUT_PTHREAD=true`` in the command above. By default, oneTBB uses the ``pthreads``.
3939
```

0 commit comments

Comments
 (0)