From fcffa13693d37baa06623fd75f6ed1423816119d Mon Sep 17 00:00:00 2001 From: Sebastian <106036+schoeller@users.noreply.github.com> Date: Mon, 17 Aug 2026 21:40:45 +0200 Subject: [PATCH] fix(build): increase Windows debug stack Increase the Windows debug executable stack reserve to prevent startup overflow. --- .cargo/config.toml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.cargo/config.toml b/.cargo/config.toml index 88c43407a..7a85fa59e 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -18,3 +18,10 @@ rustflags = [ # WebAssembly stack while developing with `trunk serve`. '-Clink-arg=-zstack-size=4194304', ] + +[target.x86_64-pc-windows-msvc] +rustflags = [ + # Debug builds of the host have a deeper call stack than the default 1 MiB + # Windows stack allows; increase it to avoid stack overflow on startup. + '-Clink-arg=/STACK:16777216', +]