diff --git a/.cargo/config.toml b/.cargo/config.toml index 57747f7c9..21e9b37b9 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,2 +1,9 @@ [target.x86_64-pc-windows-msvc] linker = "rust-lld" + +[target.'cfg(all(windows, debug_assertions))'] +rustflags = [ + # increase the stack size to prevent overflowing the stack in debug + "-C", + "link-arg=/STACK:8000000", +]