Skip to content

Commit

Permalink
Disable LTO
Browse files Browse the repository at this point in the history
Enabling LTO results in link errors, see rust-fuzz#384 for more info.
  • Loading branch information
ijc committed Sep 18, 2024
1 parent a608970 commit d723f18
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit d723f18

Please sign in to comment.