From a7ef5f452ec1dcb856fae99d56c6db08bf23d1ff Mon Sep 17 00:00:00 2001 From: DavidKorczynski Date: Wed, 14 Oct 2020 13:55:21 +0100 Subject: [PATCH] fuzz: fix release profile 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`). --- fuzz/Cargo.toml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index 2cabf33c8f..4bf12bb25d 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -1,3 +1,5 @@ +cargo-features = ['named-profiles'] + [package] name = "regex-fuzz" version = "0.0.0" @@ -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"