Skip to content

Commit a2123ae

Browse files
committed
f
1 parent 68306bb commit a2123ae

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

build.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff 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 =

0 commit comments

Comments
 (0)