Skip to content

Commit

Permalink
Fix build and remove dump_state feature (AFLplusplus#2513)
Browse files Browse the repository at this point in the history
* fix

* remove dump_state
  • Loading branch information
tokatoka authored Sep 6, 2024
1 parent b37f9d4 commit 1172b5e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 17 deletions.
3 changes: 0 additions & 3 deletions libafl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ tcp_compression = ["tcp_manager", "libafl_bolts/gzip"]
## Enable multi-machine support
multi_machine = ["tokio", "std", "enumflags2", "ahash/std"]

## Dump state of each client on exit
dump_state = ["std"]

## Enables the `NaiveTokenizer` and `StacktraceObserver`
regex = ["std", "dep:regex"]

Expand Down
26 changes: 12 additions & 14 deletions libafl_cc/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,26 +200,24 @@ fn build_pass(
};

match command_result {
Some(res) => {
match res {
Ok(s) => {
if !s.success() {
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}. You can ignore this error.");
}
}
}
Err(err) => {
Some(res) => match res {
Ok(s) => {
if !s.success() {
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}. You can ignore this error.");
println!("cargo:warning=Skipping non-required compiler pass src/{src_file} - Reason: Exit status {s}. You can ignore this error unless you want this compiler pass.");
}
}
}
}
Err(err) => {
if required {
panic!("Failed to compile required compiler pass src/{src_file} - Exit status: {err}");
} else {
println!("cargo:warning=Skipping non-required compiler pass src/{src_file} - Reason: Exit status {err}. You can ignore this error unless you want this compiler pass.");
}
}
},
None => {
println!("cargo:warning=Skipping compiler pass src/{src_file} - Only supported on Windows or *nix.");
}
Expand Down

0 comments on commit 1172b5e

Please sign in to comment.