fix build for android

master
Niko PLP 1 year ago
parent 7acbf4389b
commit 48c0a29f92
  1. 2
      librocksdb-sys/build.rs

@ -145,7 +145,7 @@ fn build_rocksdb() {
// the flag has been moved to the darwin. openbsd, freebsd and linux cases below
}
if target.contains("darwin") || target.contains("linux") {
if target.contains("darwin") || (target.contains("linux" && !target.contains("android"))) {
// on macos and linux we use the IPPCP plugin of rocksdb for the crypto (the lib is precompiled)
config.include("rocksdb/plugin/ippcp/library/include");
lib_sources.push("plugin/ippcp/ippcp_provider.cc");

Loading…
Cancel
Save