Skip to content

Commit

Permalink
chore(storage): rebuild MDBX if sources changed (paradigmxyz#5435)
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin authored Nov 15, 2023
1 parent e109896 commit b98d7c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ lcov.info

# Generated by ./etc/generate-jwt.sh
jwttoken/

# Generated by CMake due to MDBX sources
crates/storage/libmdbx-rs/mdbx-sys/libmdbx/cmake-build-debug
2 changes: 2 additions & 0 deletions crates/storage/libmdbx-rs/mdbx-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ fn main() {
let mut mdbx = PathBuf::from(&env::var("CARGO_MANIFEST_DIR").unwrap());
mdbx.push("libmdbx");

println!("cargo:rerun-if-changed={}", mdbx.display());

let out_path = PathBuf::from(env::var("OUT_DIR").unwrap());

let bindings = bindgen::Builder::default()
Expand Down

0 comments on commit b98d7c8

Please sign in to comment.