From 3f9093ad09e405c66ce58dbf144bfbd0bcea27bf Mon Sep 17 00:00:00 2001 From: Michael Bolin Date: Sat, 28 Jun 2025 15:21:28 -0700 Subject: [PATCH] fix: build with `codegen-units = 1` for profile.release --- codex-rs/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/codex-rs/Cargo.toml b/codex-rs/Cargo.toml index f93cbbaa37..eba43e548b 100644 --- a/codex-rs/Cargo.toml +++ b/codex-rs/Cargo.toml @@ -37,3 +37,6 @@ lto = "fat" # Because we bundle some of these executables with the TypeScript CLI, we # remove everything to make the binary as small as possible. strip = "symbols" + +# See https://github.com/openai/codex/issues/1411 for details. +codegen-units = 1