Unverified Commit 3acf2eff authored by Alex Gaynor's avatar Alex Gaynor Committed by GitHub
Browse files

Merge pull request #2157 from reaperhulk/rebuild-if-changed

rebuild openssl-sys if the underlying openssl has changed
parents 84162bf7 54621a90
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.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);