nucleo-l053r8-benches/crates/crc/build.rs

10 lines
332 B
Rust
Executable file

fn main() {
let status = std::process::Command::new("make")
.status()
.expect("could not make c stuff");
if !status.success() {
panic!("make returned an error")
}
let cwd = std::env::current_dir().unwrap().display().to_string();
println!("cargo::rustc-link-search={cwd}/target/c/bin");
}