From 11e5327770d9581fae3d147913b4cb82fa38ccc6 Mon Sep 17 00:00:00 2001 From: Jeremy Rose <172423086+nornagon-openai@users.noreply.github.com> Date: Thu, 30 Oct 2025 16:12:50 -0700 Subject: [PATCH] build: 8mb stacks on win (#5997) #5981 seems to be fixing what's actually a call stack overflow, maybe this will fix it without disabling a feature? --- codex-rs/.cargo/config.toml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 codex-rs/.cargo/config.toml diff --git a/codex-rs/.cargo/config.toml b/codex-rs/.cargo/config.toml new file mode 100644 index 00000000..f5107cf7 --- /dev/null +++ b/codex-rs/.cargo/config.toml @@ -0,0 +1,5 @@ +[target.'cfg(all(windows, target_env = "msvc"))'] +rustflags = ["-C", "link-arg=/STACK:8388608"] + +[target.'cfg(all(windows, target_env = "gnu"))'] +rustflags = ["-C", "link-arg=-Wl,--stack,8388608"]