From dd93a79d87930b804d41a36b0f6d4ea253a241d7 Mon Sep 17 00:00:00 2001 From: Einliterflasche Date: Thu, 15 Aug 2024 15:00:55 +0200 Subject: [PATCH] fix: stack overflow on windows --- .cargo/config.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.cargo/config.toml b/.cargo/config.toml index 0c1c209f..b707df9d 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,2 +1,6 @@ [target.armv7-unknown-linux-gnueabihf] linker = "arm-linux-gnueabihf-gcc" + +# windows defaults to smaller stack sizes which isn't enough +[target.'cfg(windows)'] +rustflags = ["-C", "link-args=/STACK:8388608"]