Skip to content

Commit d5e6fb5

Browse files
committed
move cfg
1 parent 705568d commit d5e6fb5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

openssl-sys/build/main.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,8 @@ fn main() {
8282
// rerun-if-changed causes openssl-sys to rebuild if the openssl include
8383
// dir has changed since the last build. However, this causes a rebuild
8484
// every time when vendoring so we disable it.
85-
#[cfg(not(feature = "vendored"))]
8685
let potential_path = include_dir.join("openssl");
87-
if potential_path.exists() {
86+
if potential_path.exists() && !cfg!(feature = "vendored") {
8887
if let Some(printable_include) = potential_path.to_str() {
8988
println!("cargo:rerun-if-changed={}", printable_include);
9089
}

0 commit comments

Comments
 (0)