Skip to content

Commit

Permalink
Better error when non required pass failed to build (AFLplusplus#2509)
Browse files Browse the repository at this point in the history
  • Loading branch information
tokatoka authored Sep 5, 2024
1 parent 49b0d75 commit b37f9d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libafl_cc/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,15 +207,15 @@ fn build_pass(
if required {
panic!("Failed to compile required compiler pass src/{src_file} - Exit status: {s}");
} else {
println!("cargo:warning=Skipping non-required compiler pass src/{src_file} - Reason: Exit status {s}");
println!("cargo:warning=Skipping non-required compiler pass src/{src_file} - Reason: Exit status {s}. You can ignore this error.");
}
}
}
Err(err) => {
if required {
panic!("Failed to compile required compiler pass src/{src_file} - Error: {err}");
panic!("Failed to compile required compiler pass src/{src_file} - Exit status: {s}");
} else {
println!("cargo:warning=Skipping non-required compiler pass src/{src_file} - Error: {err}");
println!("cargo:warning=Skipping non-required compiler pass src/{src_file} - Reason: Exit status {s}. You can ignore this error.");
}
}
}
Expand Down

0 comments on commit b37f9d4

Please sign in to comment.