We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3439059 commit 705568dCopy full SHA for 705568d
openssl-sys/build/main.rs
@@ -83,8 +83,11 @@ fn main() {
83
// dir has changed since the last build. However, this causes a rebuild
84
// every time when vendoring so we disable it.
85
#[cfg(not(feature = "vendored"))]
86
- if let Some(printable_include) = include_dir.join("openssl").to_str() {
87
- println!("cargo:rerun-if-changed={}", printable_include);
+ let potential_path = include_dir.join("openssl");
+ if potential_path.exists() {
88
+ if let Some(printable_include) = potential_path.to_str() {
89
+ println!("cargo:rerun-if-changed={}", printable_include);
90
+ }
91
}
92
93
if !lib_dirs.iter().all(|p| p.exists()) {
0 commit comments