Skip to content

Commit

Permalink
move cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
reaperhulk committed Feb 22, 2024
1 parent 705568d commit d5e6fb5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions openssl-sys/build/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,8 @@ fn main() {
// rerun-if-changed causes openssl-sys to rebuild if the openssl include
// dir has changed since the last build. However, this causes a rebuild
// every time when vendoring so we disable it.
#[cfg(not(feature = "vendored"))]
let potential_path = include_dir.join("openssl");
if potential_path.exists() {
if potential_path.exists() && !cfg!(feature = "vendored") {
if let Some(printable_include) = potential_path.to_str() {
println!("cargo:rerun-if-changed={}", printable_include);
}
Expand Down

0 comments on commit d5e6fb5

Please sign in to comment.