mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-10-20 11:54:25 +00:00
- Add build.rs with Command execution for cargo build-bpf --release - Add status check with panic on build failure for eBPF program compilation
14 lines
308 B
Rust
14 lines
308 B
Rust
use std::process::Command;
|
|
|
|
fn main() {
|
|
// Build the eBPF program
|
|
let status = Command::new("cargo")
|
|
.args(&["build-bpf", "--release"])
|
|
.status()
|
|
.expect("Failed to execute cargo build-bpf");
|
|
|
|
if !status.success() {
|
|
panic!("Failed to build eBPF program");
|
|
}
|
|
}
|