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 @@ -17,10 +17,9 @@ fn build_ebpf() {
1717 let cargo_toml_hidden = ockam_ebpf_impl_subdir. join ( "Cargo.toml.hidden" ) ;
1818 let cargo_toml = ockam_ebpf_impl_subdir. join ( "Cargo.toml" ) ;
1919
20- // Delete the target dir for eBPF crate otherwise it doesn't want to recompile after files are
20+ // Delete the directories for eBPF crate otherwise it doesn't want to recompile after files are
2121 // updated
22- _ = std:: fs:: remove_dir_all ( & ockam_ebpf_impl_subdir) ;
23- _ = std:: fs:: remove_dir_all ( & ockam_ebpf_impl_target_subdir) ;
22+ _ = std:: fs:: remove_dir_all ( & ebpf_subdir) ;
2423
2524 std:: fs:: create_dir ( & ebpf_subdir) . unwrap ( ) ;
2625 std:: fs:: create_dir ( & ockam_ebpf_impl_subdir) . unwrap ( ) ;
@@ -59,7 +58,10 @@ fn build_ebpf() {
5958 } ;
6059
6160 if !output. status . success ( ) {
62- panic ! ( "Couldn't compile eBPF: {:?}" , output. stderr) ;
61+ panic ! (
62+ "Couldn't compile eBPF: {}" ,
63+ String :: from_utf8( output. stderr) . unwrap( )
64+ ) ;
6365 }
6466
6567 let build_output_file =
You can’t perform that action at this time.
0 commit comments