Debian Codegraph @

debian/rust-vendor/crossbeam-deque/build.rs

raw
1 // The rustc-cfg emitted by the build script are *not* public API.
2
3 use std::env;
4
5 fn main() {
6 println!("cargo:rerun-if-changed=build.rs");
7 println!("cargo:rustc-check-cfg=cfg(crossbeam_sanitize_thread)");
8
9 // `cfg(sanitize = "..")` is not stabilized.
10 let sanitize = env::var("CARGO_CFG_SANITIZE").unwrap_or_default();
11 if sanitize.contains("thread") {
12 println!("cargo:rustc-cfg=crossbeam_sanitize_thread");
13 }
14 }