fix(build): reduce codegen-units for low-memory devices

Reduced codegen-units from 8 to 1 in the release profile to prevent OOM compilation failures on low-memory devices like Raspberry Pi 3 (1GB RAM).\n\nCo-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Argenis 2026-02-17 02:15:49 -05:00 committed by GitHub
parent a47c34e3ac
commit d8043f440c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -131,7 +131,8 @@ rag-pdf = ["dep:pdf-extract"]
[profile.release]
opt-level = "z" # Optimize for size
lto = "thin" # Lower memory use during release builds
codegen-units = 8 # Faster, lower-RAM codegen for small devices
codegen-units = 1 # Serialized codegen for low-memory devices (e.g., Raspberry Pi 3 with 1GB RAM)
# Higher values (e.g., 8) compile faster but require more RAM during compilation
strip = true # Remove debug symbols
panic = "abort" # Reduce binary size