]> git.proxmox.com Git - rustc.git/blob - src/stdsimd/crates/assert-instr-macro/build.rs
New upstream version 1.26.0+dfsg1
[rustc.git] / src / stdsimd / crates / assert-instr-macro / build.rs
1 use std::env;
2
3 fn main() {
4 println!("cargo:rerun-if-changed=build.rs");
5 let opt_level = env::var("OPT_LEVEL")
6 .ok()
7 .and_then(|s| s.parse().ok())
8 .unwrap_or(0);
9 let profile = env::var("PROFILE").unwrap_or(String::new());
10 if profile == "release" || opt_level >= 2 {
11 println!("cargo:rustc-cfg=optimized");
12 }
13 }