Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cargo.toml: Add release profile for smaller size and overflow checks #40

Merged
merged 1 commit into from
Dec 5, 2023

Conversation

pothos
Copy link
Member

@pothos pothos commented Dec 5, 2023

The release binary should be as small as possible without impact. Since this is new code we also want the release binary to still have overflow checks instead of silently eating them.
Add a release profile that strips the debug symbols, uses one codegen unit to get similar gains as thin LTO (which we seem to have cross- compiling problems with), and enable overflow checks.

The release binary should be as small as possible without impact. Since
this is new code we also want the release binary to still have overflow
checks instead of silently eating them.
Add a release profile that strips the debug symbols, uses one codegen
unit to get similar gains as thin LTO (which we seem to have cross-
compiling problems with), and enable overflow checks.
@pothos pothos requested a review from dongsupark December 5, 2023 12:40
@pothos pothos merged commit 2c58396 into trunk Dec 5, 2023
1 check passed
@pothos pothos deleted the kai/release-profile branch December 5, 2023 14:25
dongsupark added a commit to flatcar/scripts that referenced this pull request Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants