Cargo.toml: Enable full LTO in release builds and thin in dev builds. #704
No reviewers
Labels
No Label
AdminAPI
Bug
Check AWS
CI
Correctness
Critical
Documentation
Ideas
Improvement
Low priority
Newcomer
Performance
S3 Compatibility
Testing
Usability
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Deuxfleurs/garage#704
Loading…
Reference in New Issue
No description provided.
Delete Branch "jpds/garage:release-build-lto"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Optimizations picked from
cloud-hypervisor
project: https://github.com/cloud-hypervisor/cloud-hypervisor/blob/main/Cargo.toml#L20-L24Binary sizes:
Thanks, LGTM. I think for the moment this will not be taken into account in the Nix build process that builds release binaries, we'll have to look into that.
I think thin LTO is adding at least a few minutes to our debug builds which is pretty annoying for the CI, so I will disable it on debug for now.
lx referenced this pull request2024-03-01 14:14:56 +00:00