Skip to content

Commit

Permalink
Always turn on -Zbuild-std
Browse files Browse the repository at this point in the history
  • Loading branch information
saethlin committed Mar 7, 2022
1 parent c26ea97 commit 8e6cd7b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,13 @@ impl FuzzProject {
for flag in &build.unstable_flags {
cmd.arg("-Z").arg(flag);
}
if let Sanitizer::Memory = build.sanitizer {
// Always turn on build-std if it isn't already, to take advantage of the debug assertions
// in the standard library.
if !build
.unstable_flags
.iter()
.any(|arg| arg.starts_with("build-std"))
{
cmd.arg("-Z").arg("build-std");
}

Expand Down

0 comments on commit 8e6cd7b

Please sign in to comment.