We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5badf2a commit 532fcdbCopy full SHA for 532fcdb
CMakeLists.txt
@@ -35,6 +35,11 @@ if (EMSCRIPTEN)
35
set(BUILD_SHARED_LIBS_DEFAULT OFF)
36
37
option(WHISPER_WASM_SINGLE_FILE "whisper: embed WASM inside the generated whisper.js" ON)
38
+
39
+ # TODO: without these, we get the following error:
40
+ # wasm-ld: error: --shared-memory is disallowed by whisper.cpp.o because it was not compiled with 'atomics' or 'bulk-memory' features.
41
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread -s TOTAL_STACK=5242880")
42
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread -s TOTAL_STACK=5242880")
43
else()
44
if (MINGW)
45
0 commit comments