File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ pub fn archive_file_path() -> Result<PathBuf> {
59
59
afl_llvm_dir ( ) . map ( |path| path. join ( "libafl-llvm-rt.a" ) )
60
60
}
61
61
62
- pub fn plugins_available ( ) -> Result < bool > {
62
+ pub fn plugins_installed ( ) -> Result < bool > {
63
63
let afl_llvm_dir = afl_llvm_dir ( ) ?;
64
64
for result in afl_llvm_dir
65
65
. read_dir ( )
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ pub struct Args {
38
38
39
39
pub fn config ( args : & Args ) -> Result < ( ) > {
40
40
let archive_file_path = common:: archive_file_path ( ) ?;
41
- if !args. force && archive_file_path. exists ( ) && args. plugins == common:: plugins_available ( ) ? {
41
+ if !args. force && archive_file_path. exists ( ) && args. plugins == common:: plugins_installed ( ) ? {
42
42
let version = common:: afl_rustc_version ( ) ?;
43
43
bail ! (
44
44
"AFL LLVM runtime was already built for Rust {version}; run `cargo afl config --build \
Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ fn command_with_afl_version() -> clap::Command {
182
182
183
183
( || -> Option < ( ) > {
184
184
let afl_version = afl_version ( ) ?;
185
- let with_plugins = common:: plugins_available ( ) . ok ( ) ?;
185
+ let with_plugins = common:: plugins_installed ( ) . ok ( ) ?;
186
186
187
187
let subcmd = command. find_subcommand_mut ( "afl" ) . unwrap ( ) ;
188
188
let ver = format ! (
@@ -292,7 +292,7 @@ where
292
292
environment_variables. insert ( "ASAN_OPTIONS" , asan_options) ;
293
293
environment_variables. insert ( "TSAN_OPTIONS" , tsan_options) ;
294
294
295
- let has_plugins = common:: plugins_available ( ) . unwrap ( ) ;
295
+ let has_plugins = common:: plugins_installed ( ) . unwrap ( ) ;
296
296
if require_plugins || has_plugins {
297
297
// Make sure we are on nightly for the -Z flags
298
298
assert ! (
You can’t perform that action at this time.
0 commit comments