Skip to content

Commit

Permalink
Make sure the build scripts rerun when the LMDB files changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerollmops committed Feb 14, 2025
1 parent f219a1c commit 00ea6d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lmdb-master-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ fn main() {
#[cfg(feature = "bindgen")]
generate::generate();

println!("cargo::rerun-if-changed=lmdb");

let mut lmdb = PathBuf::from(&env::var("CARGO_MANIFEST_DIR").unwrap());
lmdb.push("lmdb");
lmdb.push("libraries");
Expand Down
2 changes: 2 additions & 0 deletions lmdb-master3-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ fn main() {
#[cfg(feature = "bindgen")]
generate::generate();

println!("cargo::rerun-if-changed=lmdb");

let mut lmdb = PathBuf::from(&env::var("CARGO_MANIFEST_DIR").unwrap());
lmdb.push("lmdb");
lmdb.push("libraries");
Expand Down

0 comments on commit 00ea6d9

Please sign in to comment.