diff --git a/src/project.rs b/src/project.rs index c62bfe9..a75a344 100644 --- a/src/project.rs +++ b/src/project.rs @@ -142,7 +142,15 @@ impl FuzzProject { .arg(&build.triple); // we default to release mode unless debug mode is explicitly requested if !build.dev { - cmd.args(["--release", "--config", "profile.release.debug=true"]); + cmd.args([ + "--release", + "--config", + "profile.release.debug=true", + "--config", + "profile.release.lto=false", + ]); + } else { + cmd.args(["--config", "profile.dev.lto=false"]); } if build.verbose { cmd.arg("--verbose");