Revert "fix(build): avoid release OOM on 1GB hosts (#404)" (#407)

This reverts commit 0456f14a11.
This commit is contained in:
Chummy 2026-02-17 01:34:11 +08:00 committed by GitHub
parent 24bf116216
commit 74c0c7340b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 8 deletions

View file

@ -124,15 +124,15 @@ rag-pdf = ["dep:pdf-extract"]
[profile.release]
opt-level = "z" # Optimize for size
lto = false # Keep release buildable on low-RAM hosts (e.g., 1GB boards)
codegen-units = 16 # Reduce peak compiler memory pressure
lto = "thin" # Lower memory use during release builds
codegen-units = 8 # Faster, lower-RAM codegen for small devices
strip = true # Remove debug symbols
panic = "abort" # Reduce binary size
[profile.dist]
inherits = "release"
opt-level = "z"
lto = "fat" # Maximum size/runtime optimization for published artifacts
lto = "fat"
codegen-units = 1
strip = true
panic = "abort"