Skip to content

Commit d9a66c3

Browse files
committed
[Rust] Rerun bindings generator automatically when BINARYNINJADIR changes
This improves the experience when making changes to the core c ffi
1 parent f5781a3 commit d9a66c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rust/binaryninjacore-sys/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ fn link_path() -> PathBuf {
4242
}
4343

4444
fn main() {
45+
println!("cargo:rerun-if-env-changed=BINARYNINJADIR");
4546
println!("cargo:rerun-if-changed=../../binaryninjacore.h");
4647

4748
//Cargo's output directory

0 commit comments

Comments
 (0)