Skip to content

Commit

Permalink
Fix eigen stack alloc limit in wasm (#2679)
Browse files Browse the repository at this point in the history
  • Loading branch information
Grantim committed May 3, 2024
1 parent 84c40c4 commit 2e618fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ IF(MR_EMSCRIPTEN)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -sASYNCIFY_IGNORE_INDIRECT -sASYNCIFY_ADD=@${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/wasm_async_func_list.txt")
add_compile_definitions(MR_EMSCRIPTEN_ASYNCIFY)
ENDIF() # NOT MR_DISABLE_EMSCRIPTEN_ASYNCIFY
add_compile_definitions(EIGEN_STACK_ALLOCATION_LIMIT=0)
ENDIF() # MR_EMSCRIPTEN

IF(NOT MR_EMSCRIPTEN)
Expand Down

0 comments on commit 2e618fc

Please sign in to comment.