Commit 67f955c8 authored by Paul Kehrer's avatar Paul Kehrer
Browse files

rebuild openssl-sys if the underlying openssl has changed

parent 2ed3c609
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);