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

Add LTO to the release build #73

Merged
merged 1 commit into from
Aug 11, 2023
Merged

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented Aug 10, 2023

Description

This PR adds Link Time Optimization (LTO) to the release build of the Rust project. LTO is a program optimization technique used by compilers at link time to improve performance and reduce program size.

Summary

In this PR, the following changes were made:

  • Added a [profile.release] section in the Cargo.toml file.
  • Set lto = true under the [profile.release] section to enable LTO for the release build.

Fixes #71.


To checkout this PR branch, run the following command in your terminal:

git checkout sweep/add-lto-to-release-build

To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.

@sweep-ai sweep-ai bot added the sweep Assigns Sweep to an issue or pull request. label Aug 10, 2023
FireMasterK

This comment was marked as resolved.

@FireMasterK
Copy link
Member

sweep: Add a newline to the end of the file.

@FireMasterK FireMasterK merged commit 022426d into main Aug 11, 2023
2 checks passed
@FireMasterK FireMasterK deleted the sweep/add-lto-to-release-build branch August 11, 2023 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sweep Assigns Sweep to an issue or pull request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sweep: Add LTO to the release build
1 participant