Skip to content

Commit

Permalink
rebuild openssl-sys if the underlying openssl has changed
Browse files Browse the repository at this point in the history
  • Loading branch information
reaperhulk committed Jan 30, 2024
1 parent 2ed3c60 commit 67f955c
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.to_str() {
println!("cargo:rerun-if-changed={}", printable_include);
}

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

0 comments on commit 67f955c

Please sign in to comment.