Skip to content

Commit 692e907

Browse files
committed
fix: link lmdb
1 parent 61d47dd commit 692e907

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

bb/build.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
use std::{
2-
env, fs,
3-
path::{Path, PathBuf},
4-
process::Command,
5-
};
1+
use std::{env, fs, path::Path, process::Command};
62

73
const BB_DOWNLOAD_SCRIPT: &str = include_str!("./download_bb.sh");
84
const TARGET_LIST: [&str; 8] = [
@@ -69,6 +65,10 @@ fn main() {
6965
// Link the `libdeflate` static library.
7066
println!("cargo:rustc-link-lib=static=deflate");
7167

68+
if target.contains("ios") {
69+
println!("cargo:rustc-link-lib=static=lmdb");
70+
}
71+
7272
// Link the C++ standard library.
7373
if cfg!(target_os = "macos") || cfg!(target_os = "ios") {
7474
println!("cargo:rustc-link-lib=c++");

0 commit comments

Comments
 (0)