Skip to content

Commit

Permalink
Merge pull request #268 from dtolnay/checkcfg
Browse files Browse the repository at this point in the history
Resolve unexpected_cfgs warning
  • Loading branch information
dtolnay committed May 7, 2024
2 parents 8a57d8c + 7bb6f2f commit b3c9481
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ use std::path::Path;
fn main() -> io::Result<()> {
println!("cargo:rerun-if-changed=src/tests");

println!("cargo:rustc-check-cfg=cfg(trybuild_no_target)");

let out_dir = env::var_os("OUT_DIR").unwrap();
let target = env::var("TARGET").ok();
let path = Path::new(&out_dir).join("target");
Expand Down

0 comments on commit b3c9481

Please sign in to comment.