Skip to content

Commit

Permalink
Increase stack size on windows to avoid running out stack space durin…
Browse files Browse the repository at this point in the history
…g testing (error detected by ASAN)
  • Loading branch information
dibyendumajumdar committed Jun 10, 2024
1 parent 3945485 commit b952b9f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ set_property(TARGET ${LIBRAVI_NAME} PROPERTY C_STANDARD 99)
# Main Ravi executable
add_executable(ravi ${LUA_CMD_SRCS})
target_link_libraries(ravi ${LIBRAVI_NAME})
target_link_options(ravi PRIVATE /STACK:16777216)
if (MSVC)
# Increase stack size as default size causes tests to fail
target_link_options(ravi PRIVATE /STACK:16777216)
endif()
set_property(TARGET ravi PROPERTY C_STANDARD 99)

# Sources that are needed for a static NOJIT basic library
Expand Down

0 comments on commit b952b9f

Please sign in to comment.