|
|
@ -478,8 +478,8 @@ fn main() { |
|
|
|
env::set_var("LIBCLANG_PATH", "/usr/local/llvm17/lib"); |
|
|
|
env::set_var("LIBCLANG_PATH", "/usr/local/llvm17/lib"); |
|
|
|
} else if target.contains("windows") { |
|
|
|
} else if target.contains("windows") { |
|
|
|
env::set_var("LIBCLANG_PATH", "C:\\Program Files\\LLVM\\bin"); |
|
|
|
env::set_var("LIBCLANG_PATH", "C:\\Program Files\\LLVM\\bin"); |
|
|
|
} else if target.contains("ios") { |
|
|
|
} else if target.contains("apple") { |
|
|
|
env::set_var("LIBCLANG_PATH", "/usr/local/opt/llvm/lib"); |
|
|
|
env::set_var("LIBCLANG_PATH", "/usr/local/opt/llvm@20/lib"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
bindgen_rocksdb(); |
|
|
|
bindgen_rocksdb(); |
|
|
@ -491,9 +491,7 @@ fn main() { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
let target = env::var("TARGET").unwrap(); |
|
|
|
let target = env::var("TARGET").unwrap(); |
|
|
|
// according to https://github.com/alexcrichton/cc-rs/blob/master/src/lib.rs#L2189
|
|
|
|
// according to https://github.com/alexcrichton/cc-rs/blob/master/src/lib.rs#L2189
|
|
|
|
if target.contains("ios") { |
|
|
|
if target.contains("apple") || target.contains("freebsd") || target.contains("openbsd") { |
|
|
|
println!("cargo:rustc-link-lib=dylib=stdc++"); |
|
|
|
|
|
|
|
} else if target.contains("apple") || target.contains("freebsd") || target.contains("openbsd") { |
|
|
|
|
|
|
|
println!("cargo:rustc-link-lib=dylib=c++"); |
|
|
|
println!("cargo:rustc-link-lib=dylib=c++"); |
|
|
|
} else if target.contains("linux") { |
|
|
|
} else if target.contains("linux") { |
|
|
|
println!("cargo:rustc-link-lib=dylib=stdc++"); |
|
|
|
println!("cargo:rustc-link-lib=dylib=stdc++"); |
|
|
|