Correct the placement of the wrapper rebuild in the build script

This commit is contained in:
Luke Parker
2022-04-27 22:49:18 -04:00
parent a37a21f891
commit b10b531311

View File

@@ -63,6 +63,7 @@ fn main() {
panic!("Failed to cp {}", lib); panic!("Failed to cp {}", lib);
} }
} }
}
println!("cargo:rerun-if-changed=c/wrapper.c"); println!("cargo:rerun-if-changed=c/wrapper.c");
if !Command::new("g++").args(&[ if !Command::new("g++").args(&[
@@ -79,7 +80,6 @@ fn main() {
]).current_dir(&Path::new("c")).status().unwrap().success() { ]).current_dir(&Path::new("c")).status().unwrap().success() {
panic!("g++ failed to build the wrapper"); panic!("g++ failed to build the wrapper");
} }
}
println!("cargo:rustc-link-search={}", out_dir); println!("cargo:rustc-link-search={}", out_dir);
println!("cargo:rustc-link-lib=cncrypto"); println!("cargo:rustc-link-lib=cncrypto");