From 1b7c8d2569ec965a66ab409377030494bb100fff Mon Sep 17 00:00:00 2001 From: Michael Bolin Date: Sat, 28 Jun 2025 15:24:48 -0700 Subject: [PATCH] fix: build with `codegen-units = 1` for profile.release (#1421) Great suggestion from @zamazan4ik on https://github.com/openai/codex/issues/1411. --- codex-rs/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/codex-rs/Cargo.toml b/codex-rs/Cargo.toml index f93cbbaa..eba43e54 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