rust/build.rs

9 lines
248 B
Rust
Raw Normal View History

2018-05-22 16:21:42 +08:00
use std::env;
2017-09-18 18:47:33 +08:00
fn main() {
2018-05-13 16:11:52 +08:00
// Forward the profile to the main compilation
println!("cargo:rustc-env=PROFILE={}", env::var("PROFILE").unwrap());
// Don't rebuild even if nothing changed
println!("cargo:rerun-if-changed=build.rs");
}