This repository has been archived on 2025-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
szun-old/build.rs

20 lines
408 B
Rust

extern crate cc;
fn main() {
let debug = match std::env::var("PROFILE") {
Ok(s) => match s.as_str() {
"debug" => true,
_ => false,
},
_ => false,
};
println!("cargo:rerun-if-changed=src/runtime");
cc::Build::new()
.cpp(true)
.file("src/runtime/lib.cc")
.debug(debug)
.compile("runtime");
}