Skip to content

Commit 44abc5f

Browse files
committed
fuzz: enable optimizations in other profiles
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.
1 parent 9067dfd commit 44abc5f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: fuzz/Cargo.toml

+8
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ members = ["."]
2222
name = "fuzz_regex_match"
2323
path = "fuzz_targets/fuzz_regex_match.rs"
2424

25+
[profile.debug]
26+
opt-level = 3
27+
debug = true
28+
2529
[profile.release]
2630
opt-level = 3
2731
debug = true
32+
33+
[profile.test]
34+
opt-level = 3
35+
debug = true

0 commit comments

Comments
 (0)