Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

build: 8mb stacks on win (#5997)

Jeremy Rose11e5327770d9
diff --git a/codex-rs/.cargo/config.toml b/codex-rs/.cargo/config.toml
new file mode 100644
index 0000000000..f5107cf73e
--- /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"]