1 parent d10f1fa commit 11a60fbCopy full SHA for 11a60fb
1 file changed
frame-analyzer/build.rs
@@ -93,13 +93,19 @@ fn build_ebpf() -> Result<()> {
93
ebpf_args.push("--debug");
94
95
let _ = fs::remove_dir_all(target_dir.join("bin")); // clean up
96
- Command::new("cargo")
+ let status = Command::new("cargo")
97
.args(["install", "frame-analyzer-ebpf"])
98
+ .arg("--force")
99
.args(ebpf_args)
100
.args(["--root", target_dir_str])
101
.env_remove("RUSTUP_TOOLCHAIN")
102
.env("PATH", add_path(bin)?)
103
.status()?;
104
+ if !status.success() {
105
+ panic!(
106
+ "Critical: Failed to install frame-analyzer-ebpf via cargo install. Check the output above for linker errors."
107
+ );
108
+ }
109
110
#[cfg(debug_assertions)]
111
let prefix_dir = &target_dir.join("bpfel-unknown-none").join("debug");
0 commit comments