Skip to content

Commit

Permalink
fuzz: fix release profile
Browse files Browse the repository at this point in the history
I had to apply these changes for OSS-Fuzz to continue working.
Specifically I needed to add `cargo-features = ['named-profiles']` and
`inherits` for any profile other than `release`. However, I have also
confirmed now that the building is done with optimized + debuginfo
in OSS-Fuzz (`Finished release [optimized + debuginfo] target(s) in
37.59s`).
  • Loading branch information
DavidKorczynski authored Oct 14, 2020
1 parent 44abc5f commit a7ef5f4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions fuzz/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
cargo-features = ['named-profiles']

[package]
name = "regex-fuzz"
version = "0.0.0"
Expand All @@ -22,14 +24,12 @@ 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.debug]
inherits = "release"

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

0 comments on commit a7ef5f4

Please sign in to comment.