rust/build.rs

9 lines
248 B
Rust
Raw Normal View History

2017-09-18 10:47:33 +00:00
use std::env;
fn main() {
// 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");
}