Skip to content

Commit 3acf2ef

Browse files
authored
Merge pull request #2157 from reaperhulk/rebuild-if-changed
rebuild openssl-sys if the underlying openssl has changed
2 parents 84162bf + 54621a9 commit 3acf2ef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

openssl-sys/build/main.rs

+3
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ fn main() {
7979
let target = env::var("TARGET").unwrap();
8080

8181
let (lib_dirs, include_dir) = find_openssl(&target);
82+
if let Some(printable_include) = include_dir.join("openssl").to_str() {
83+
println!("cargo:rerun-if-changed={}", printable_include);
84+
}
8285

8386
if !lib_dirs.iter().all(|p| p.exists()) {
8487
panic!("OpenSSL library directory does not exist: {:?}", lib_dirs);

0 commit comments

Comments
 (0)