From fc662caa83aa9a6a4aca66180b7f74f4f42c5d07 Mon Sep 17 00:00:00 2001 From: Chiragroop Kahlon Date: Tue, 14 Jul 2026 18:10:36 -0700 Subject: [PATCH 1/3] * Fixed the bug where stack size is not correctly set on Windows --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 42f7330e..cfca3ade 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -70,7 +70,7 @@ function(target_add_flags target) # Stack size if(CMAKE_SYSTEM_NAME STREQUAL "Linux") target_link_options(${target} PUBLIC -Wl,-z,stack-size=8388608) # 8 MB - elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows") + elseif(CMAKE_SYSTEM_NAME STREQUAL "MSYS") target_link_options(${target} PUBLIC "-Wl,--stack,8388608") # 8 MB for MinGW/Clang endif() From 0efffce0cb15810cea527e63ef92fe4add236880 Mon Sep 17 00:00:00 2001 From: Chiragroop Kahlon Date: Tue, 14 Jul 2026 20:47:18 -0700 Subject: [PATCH 2/3] bench: 12898941 From 2de6db19406cd8d2d85d3cfae56ce8ca2cc2db9c Mon Sep 17 00:00:00 2001 From: Chiragroop Kahlon Date: Tue, 21 Jul 2026 15:15:54 -0700 Subject: [PATCH 3/3] * Added Windows check to support clang Bench: 12898941 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cfca3ade..b5e78156 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -70,7 +70,7 @@ function(target_add_flags target) # Stack size if(CMAKE_SYSTEM_NAME STREQUAL "Linux") target_link_options(${target} PUBLIC -Wl,-z,stack-size=8388608) # 8 MB - elseif(CMAKE_SYSTEM_NAME STREQUAL "MSYS") + elseif(CMAKE_SYSTEM_NAME STREQUAL "MSYS" OR CMAKE_SYSTEM_NAME STREQUAL "Windows") target_link_options(${target} PUBLIC "-Wl,--stack,8388608") # 8 MB for MinGW/Clang endif()