Skip to content

Commit

Permalink
chore: add profile for building the binary with link-time optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Feb 5, 2024
1 parent 1956ccd commit d772a67
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,12 @@ yara-x-parser = { path = "yara-x-parser" }
yara-x-proto = { path = "yara-x-proto" }
yara-x-proto-yaml = { path = "yara-x-proto-yaml" }


[profile.release]
# debug = 1 # Include debug information in the binary.
# lto = true # Enable link-time optimization.
# strip = true # Automatically strip symbols from the binary.
# Special profile that builds a release binary with link-time optimization.
# Compiling with this profile takes a while, but the resulting binary is
# smaller and better optimized. For building with this profile use:
#
# cargo build --profile release-lto
[profile.release-lto]
inherits = "release"
lto = true
codegen-units = 1

0 comments on commit d772a67

Please sign in to comment.