Prevent build.rs rerunning unnecessarily on all source changes

This commit is contained in:
David Tolnay 2022-12-12 14:37:40 -08:00
parent e123d184c3
commit fe82a37e82
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -3,6 +3,8 @@ use std::fs;
use std::path::PathBuf;
fn main() {
println!("cargo:rerun-if-changed=build.rs");
let libstdcxx = cfg!(feature = "libstdc++");
let libcxx = cfg!(feature = "libc++");
let nothing = cfg!(feature = "nothing");