const CXX_STANDARD: &str = "c++20";
const BOOST_MATH_DIR: &str = "subprojects/boost_math/math";
const WRAPPER_CPP: &str = "wrapper.cpp";
fn main() {
cc::Build::new()
.cpp(true)
.std(CXX_STANDARD)
.flag_if_supported(format!("/std:{CXX_STANDARD}"))
.flag_if_supported("/EHsc")
.flag_if_supported("/wd4714")
.flag_if_supported("-Wno-maybe-uninitialized")
.flag_if_supported("-Wno-unused-parameter")
.warnings_into_errors(true)
.include(format!("{BOOST_MATH_DIR}/include"))
.file(WRAPPER_CPP)
.compile("wrapper");
for &source_path in &["build.rs", WRAPPER_CPP, BOOST_MATH_DIR] {
println!("cargo:rerun-if-changed={source_path}");
}
}