Skip to content

Commit

Permalink
Merge pull request #2157 from reaperhulk/rebuild-if-changed
Browse files Browse the repository at this point in the history
rebuild openssl-sys if the underlying openssl has changed
  • Loading branch information
alex authored Feb 10, 2024
2 parents 84162bf + 54621a9 commit 3acf2ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions openssl-sys/build/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ fn main() {
let target = env::var("TARGET").unwrap();

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

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

0 comments on commit 3acf2ef

Please sign in to comment.