From 9b3ff035f3621623752a73dc7b136a0be6f255a5 Mon Sep 17 00:00:00 2001 From: 87 Date: Fri, 26 Dec 2025 20:22:14 +0100 Subject: [PATCH] Specify default thread stack size for musl Bench: 13566775 --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a2b6261f..73636245 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,6 +66,11 @@ function(target_add_flags target) -fsanitize=address,undefined >) + if(CMAKE_SYSTEM_NAME STREQUAL "Linux") + target_link_options(${target} PUBLIC + -Wl,-z,stack-size=2097152) + endif() + # Include directories target_include_directories(${target} PUBLIC src)