Skip to content

Commit

Permalink
Prevent build.rs rerunning unnecessarily on all source changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Dec 12, 2022
1 parent e123d18 commit fe82a37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.rs
Expand Up @@ -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");
Expand Down

0 comments on commit fe82a37

Please sign in to comment.