Skip to content

Commit

Permalink
Add eprintln statement && fix minor logic issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Ollrogge committed Dec 20, 2024
1 parent d252a3b commit 2646431
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bin/cargo-ziggy/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ impl Build {

// Add the --release argument if self.release is true
if self.release {
assert!(!self.release, "cannot use --release for ASAN builds");
assert!(!self.asan, "cannot use --release for ASAN builds");
afl_args.push("--release");
}

Expand Down Expand Up @@ -63,6 +63,7 @@ impl Build {

// If ASAN is enabled, build both a sanitized binary and a non-sanitized binary.
if self.asan {
eprintln!(" {} afl (ASan)", style("Building").red().bold());
assert_eq!(opt_level, "0", "AFL_OPT_LEVEL must be 0 for ASAN builds");
afl_args.push(&asan_target_str);
afl_args.extend(["-Z", "build-std"]);
Expand Down

0 comments on commit 2646431

Please sign in to comment.