fn main() {
let calc24_cpp = "src/calc24.cpp";
println!("cargo:rerun-if-changed={calc24_cpp}");
println!("cargo:rerun-if-changed=src/calc24.h");
#[cfg(not(feature = "cxx"))] #[cfg(feature = "cc")] let mut build = cc::Build::new();
#[cfg(feature = "cxx")] let mut build = cxx_build::bridge("src/calc24.rs");
#[cfg(any(feature = "cc", feature = "cxx"))] build.cpp(true).flag("-std=c++20")
.opt_level(2).define("NDEBUG", None).file(calc24_cpp).compile("calc24");
println!("cargo:rerun-if-changed=.git/index");
let output = std::process::Command::new("git")
.args(["rev-parse", "--short", "HEAD"]).output().unwrap();
println!("cargo:rustc-env=BUILD_GIT_HASH={}", String::from_utf8(output.stdout).unwrap());
}