Debian Codegraph @

debian/rust-vendor/getrandom/build.rs

raw
1 //! Build script for memory sanitization support
2
3 fn main() {
4 // Automatically detect cfg(sanitize = "memory") even if cfg(sanitize) isn't
5 // supported. Build scripts get cfg() info, even if the cfg is unstable.
6 println!("cargo:rerun-if-changed=build.rs");
7 let sanitizers = std::env::var("CARGO_CFG_SANITIZE").unwrap_or_default();
8 if sanitizers.contains("memory") {
9 println!("cargo:rustc-cfg=getrandom_msan");
10 }
11 }