From 5d2701bb5ad58a29cf199c26f9274cf4decf812f Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Mon, 19 Feb 2024 16:49:45 -0800 Subject: [PATCH] don't emit rerun-if-changed when vendoring --- openssl-sys/build/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/openssl-sys/build/main.rs b/openssl-sys/build/main.rs index 0ab823cdb3..203f4f9016 100644 --- a/openssl-sys/build/main.rs +++ b/openssl-sys/build/main.rs @@ -79,6 +79,7 @@ fn main() { let target = env::var("TARGET").unwrap(); let (lib_dirs, include_dir) = find_openssl(&target); + #[cfg(not(feature = "vendored"))] if let Some(printable_include) = include_dir.join("openssl").to_str() { println!("cargo:rerun-if-changed={}", printable_include); }