librustzcash/components/equihash/build.rs

18 lines
433 B
Rust

//! Build script for the equihash tromp solver in C.
fn main() {
#[cfg(feature = "solver")]
build_tromp_solver();
}
#[cfg(feature = "solver")]
fn build_tromp_solver() {
cc::Build::new()
.include("tromp/")
.file("tromp/equi_miner.c")
.compile("equitromp");
// Tell Cargo to only rerun this build script if the tromp C files or headers change.
println!("cargo:rerun-if-changed=tromp");
}