()
| 3 | use std::process::Command; |
| 4 | |
| 5 | fn main() { |
| 6 | println!("cargo:rerun-if-changed=build.rs"); |
| 7 | |
| 8 | set_commit_info_for_rustc(); |
| 9 | |
| 10 | println!("cargo:rustc-check-cfg=cfg(asan)"); |
| 11 | match env::var("CARGO_CFG_SANITIZE") { |
| 12 | Ok(s) if s == "address" => { |
| 13 | println!("cargo:rustc-cfg=asan"); |
| 14 | } |
| 15 | _ => {} |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | fn set_commit_info_for_rustc() { |
| 20 | if !Path::new(".git").exists() { |
nothing calls this directly
no test coverage detected