Skip to content

armgit / moli

Public Imported from GitHub
0

Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust

build: use one codegen unit for release binaries

ldm0fc61efed55ea
diff --git a/Cargo.toml b/Cargo.toml
index 1d33a2dc0..9d2dcda72 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -114,6 +114,9 @@ panic = "abort"
[profile.release]
panic = "abort"
strip = false
+# Production and release-regression binaries favor a compact code working set
+# over parallel code generation.
+codegen-units = 1
[profile.test]
debug = 1
diff --git a/docs/RELEASING.md b/docs/RELEASING.md
index b8971ff33..40123e6d5 100644
--- a/docs/RELEASING.md
+++ b/docs/RELEASING.md
@@ -31,6 +31,11 @@ signed. The allocator behind the default `jemalloc` feature is target-gated
out on Windows, so Windows builds use the system allocator because upstream
treats the Windows/MSVC combination as untested.
+Release builds use one code-generation unit. The release workflow and the CI
+release-regression binaries both invoke Cargo with `--release`, so they consume
+the same production profile. Normal development and unit-test builds retain
+their separate profiles and parallel code generation.
+
## Prepare the release
1. Update `version` in `moli/Cargo.toml` and refresh `Cargo.lock`.