Cargo.toml: Enable full LTO in release builds and thin in dev builds. #704
No reviewers
Labels
No labels
action
check-aws
action
discussion-needed
action
for-external-contributors
action
for-newcomers
action
more-info-needed
action
need-funding
action
triage-required
kind
correctness
kind
ideas
kind
improvement
kind
performance
kind
testing
kind
usability
kind
wrong-behavior
prio
critical
prio
low
scope
admin-api
scope
background-healing
scope
build
scope
documentation
scope
k8s
scope
layout
scope
metadata
scope
ops
scope
rpc
scope
s3-api
scope
security
scope
telemetry
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Deuxfleurs/garage#704
Loading…
Reference in a 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