Skip to content

Commit

Permalink
cli: move overflow-checks into workspace Cargo.toml so that it will n…
Browse files Browse the repository at this point in the history
…ot be ignored by compiler (#1806)
  • Loading branch information
paul-schaaf authored Apr 20, 2022
1 parent aa2b766 commit 509ef94
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ The minor version will be incremented upon a breaking change and the patch versi

## [Unreleased]

### Fixes

* cli: Move `overflow-checks` into workspace `Cargo.toml` so that it will not be ignored by compiler ([#1806](https://github.com/project-serum/anchor/pull/1806)).

## [0.24.2] - 2022-04-13

### Fixes
Expand Down
6 changes: 3 additions & 3 deletions cli/src/template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ pub fn virtual_manifest() -> &'static str {
members = [
"programs/*"
]
[profile.release]
overflow-checks = true
"#
}

Expand Down Expand Up @@ -65,9 +68,6 @@ no-log-ix-name = []
cpi = ["no-entrypoint"]
default = []
[profile.release]
overflow-checks = true
[dependencies]
anchor-lang = "{2}"
"#,
Expand Down

0 comments on commit 509ef94

Please sign in to comment.