Skip to content

Commit

Permalink
Fix stack size declaration.
Browse files Browse the repository at this point in the history
  • Loading branch information
Malkierian authored and KiritoDv committed Dec 6, 2024
1 parent d283b6a commit 42906f4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ if(NOT CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
set(CMAKE_CXX_FLAGS "-Wno-narrowing")
else()
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /STACK:16777216")
if("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "x64")
target_compile_options(${PROJECT_NAME} PRIVATE
$<$<CONFIG:Debug>:
Expand All @@ -110,7 +111,6 @@ else()
/${LINK_TYPE}
>
/bigobj
/STACK:16777216
/permissive-;
/MP;
${DEFAULT_CXX_DEBUG_INFORMATION_FORMAT};
Expand All @@ -128,7 +128,6 @@ else()
/Gy;
/${LINK_TYPE}
>
/STACK:16777216
/permissive-;
/bigobj
/MP;
Expand All @@ -150,7 +149,6 @@ else()
/FORCE:MULTIPLE
>
/bigobj
/STACK:16777216
/MANIFEST:NO;
/DEBUG;
/SUBSYSTEM:CONSOLE
Expand All @@ -164,7 +162,6 @@ else()
/FORCE:MULTIPLE
>
/bigobj
/STACK:16777216
/MANIFEST:NO;
/DEBUG;
/SUBSYSTEM:CONSOLE
Expand Down

0 comments on commit 42906f4

Please sign in to comment.