File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -92,13 +92,11 @@ pub fn config(args: &Args) -> Result<()> {
92
92
93
93
fn build_afl ( args : & Args , work_dir : & Path ) -> Result < ( ) > {
94
94
// if you had already installed cargo-afl previously you **must** clean AFL++
95
- // smoelius: AFL++ is now copied to a temporary directory before being built. So `make clean`
96
- // is no longer necessary.
97
95
let afl_dir = common:: afl_dir ( ) ?;
98
96
let mut command = Command :: new ( "make" ) ;
99
97
command
100
98
. current_dir ( work_dir)
101
- . arg ( " install")
99
+ . args ( [ "clean" , " install"] )
102
100
// skip the checks for the legacy x86 afl-gcc compiler
103
101
. env ( "AFL_NO_X86" , "1" )
104
102
. env ( "DESTDIR" , afl_dir)
@@ -120,7 +118,11 @@ fn build_afl(args: &Args, work_dir: &Path) -> Result<()> {
120
118
}
121
119
122
120
let success = command. status ( ) . as_ref ( ) . is_ok_and ( ExitStatus :: success) ;
123
- ensure ! ( success, "could not run 'make install'" ) ;
121
+ ensure ! (
122
+ success,
123
+ "could not run 'make clean install' in {}" ,
124
+ work_dir. display( )
125
+ ) ;
124
126
125
127
Ok ( ( ) )
126
128
}
You can’t perform that action at this time.
0 commit comments