Increase stack size for msys.

This commit is contained in:
Christoffer Lerno
2024-09-07 01:14:32 +02:00
committed by Christoffer Lerno
parent f5f122d5a5
commit 78c60ae695
2 changed files with 7 additions and 1 deletions

View File

@@ -425,6 +425,11 @@ if (WIN32)
target_link_libraries(c3c Winhttp.lib)
endif()
if(MINGW)
message("Increase stack for msys")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--stack,8388608")
endif ()
if (CURL_FOUND)
target_link_libraries(c3c ${CURL_LIBRARIES})
target_include_directories(c3c PRIVATE ${CURL_INCLUDES})
@@ -433,6 +438,7 @@ else()
target_compile_definitions(c3c PUBLIC CURL_FOUND=0)
endif()
if(MSVC)
message("Adding MSVC options")
target_compile_options(c3c PRIVATE /wd4068 /wd4090 /WX /Wv:18)

View File

@@ -1940,7 +1940,7 @@ bool sema_expr_analyse_macro_call(SemaContext *context, Expr *call_expr, Expr *s
bool is_always_const = decl->func_decl.signature.attrs.always_const;
ASSERT_SPAN(call_expr, decl->decl_kind == DECL_MACRO);
if (context->macro_call_depth > 200)
if (context->macro_call_depth > 256)
{
decl->decl_kind = DECL_POISONED;
RETURN_SEMA_ERROR(call_expr, "Failure evaluating macro, max call depth reached, "