Skip to content

Commit

Permalink
fuzz: enable optimizations in other profiles
Browse files Browse the repository at this point in the history
The problem was that the fuzzer wasn't running with optimizations, which
means it was likely compiled in debug mode. So setting the optimization
level on the release profile won't do any good. Instead, we set it on
the debug and test profiles, which should cover it.
  • Loading branch information
BurntSushi committed Oct 13, 2020
1 parent 9067dfd commit 44abc5f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ members = ["."]
name = "fuzz_regex_match"
path = "fuzz_targets/fuzz_regex_match.rs"

[profile.debug]
opt-level = 3
debug = true

[profile.release]
opt-level = 3
debug = true

[profile.test]
opt-level = 3
debug = true

0 comments on commit 44abc5f

Please sign in to comment.