From b952b9fd463788d1fe4f746b68e5d4d1d29d7ed3 Mon Sep 17 00:00:00 2001 From: dibyendumajumdar Date: Mon, 10 Jun 2024 21:17:58 +0100 Subject: [PATCH] Increase stack size on windows to avoid running out stack space during testing (error detected by ASAN) --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 50ab0e16..cfb69278 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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