diff --git a/CHANGELOG.md b/CHANGELOG.md index 81c49c5b43..d437a81285 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ The minor version will be incremented upon a breaking change and the patch versi ### Features * cli: Add `--program-keypair` to `anchor deploy` ([#1786](https://github.com/project-serum/anchor/pull/1786)). +* cli: Add compilation optimizations to cli template ([#1807](https://github.com/project-serum/anchor/pull/1807)). ### Fixes diff --git a/cli/src/template.rs b/cli/src/template.rs index fcf1aa8236..bcdcd7a3e8 100644 --- a/cli/src/template.rs +++ b/cli/src/template.rs @@ -19,6 +19,12 @@ members = [ [profile.release] overflow-checks = true +lto = "fat" +codegen-units = 1 +[profile.release.build-override] +opt-level = 3 +incremental = false +codegen-units = 1 "# }