Skip to content

Commit 0247381

Browse files
committed
fix "cargo check" for -sys crate if library not exists
1 parent 16f76aa commit 0247381

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

couchbase-lite-core-sys/build.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,8 @@ fn main() {
5454
"mbedx509",
5555
] {
5656
println!("cargo:rustc-link-lib=static={lib}");
57-
match find_full_library_path(&native_libs_search_paths, lib) {
58-
Ok(full_path) => {
59-
println!("cargo:rerun-if-changed={}", full_path.display());
60-
}
61-
Err(err) => {
62-
panic!("{err}");
63-
}
57+
if let Ok(full_path) = find_full_library_path(&native_libs_search_paths, lib) {
58+
println!("cargo:rerun-if-changed={}", full_path.display());
6459
}
6560
}
6661

0 commit comments

Comments
 (0)