mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 03:51:18 +00:00
Increase stack size for msys.
This commit is contained in:
committed by
Christoffer Lerno
parent
f5f122d5a5
commit
78c60ae695
@@ -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)
|
||||
|
||||
@@ -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, "
|
||||
|
||||
Reference in New Issue
Block a user