Skip to content

Commit e411f84

Browse files
thrashr888claude
andcommitted
Fix Windows stack overflow by increasing stack size to 8MB
Windows has a 1MB default stack size vs 8MB on Linux/macOS. The AllBeads CLI with many subcommands causes stack overflow on Windows. This adds linker flags to increase the stack to 8MB on Windows builds. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 5839a8f commit e411f84

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.cargo/config.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Cargo configuration for AllBeads
2+
3+
# Increase stack size on Windows (default 1MB is too small for complex CLI)
4+
# AllBeads CLI has many subcommands which causes stack overflow on Windows
5+
[target.x86_64-pc-windows-msvc]
6+
rustflags = ["-C", "link-args=/STACK:8388608"]
7+
8+
[target.x86_64-pc-windows-gnu]
9+
rustflags = ["-C", "link-args=-Wl,--stack,8388608"]

0 commit comments

Comments
 (0)