Skip to content

Commit

Permalink
rerun if the targeted library is also changed, not just if the path does
Browse files Browse the repository at this point in the history
  • Loading branch information
addisoncrump committed Jan 25, 2023
1 parent f47576d commit 663c0b6
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
@@ -1,6 +1,8 @@
fn main() {
println!("cargo:rerun-if-env-changed=CUSTOM_LIBFUZZER_PATH");
if let Ok(custom) = ::std::env::var("CUSTOM_LIBFUZZER_PATH") {
println!("cargo:rerun-if-changed={custom}");

let custom_lib_path = ::std::path::PathBuf::from(&custom);
let custom_lib_dir = custom_lib_path.parent().unwrap().to_string_lossy();

Expand Down

0 comments on commit 663c0b6

Please sign in to comment.