fix apple silicon build, bump version ngalpaha.5

master
Niko PLP 2 weeks ago
parent f1ce2e345f
commit c501c31a45
  1. 2
      Cargo.toml
  2. 4
      librocksdb-sys/build.rs

@ -1,7 +1,7 @@
[package] [package]
name = "ng-rocksdb" name = "ng-rocksdb"
description = "Rust wrapper for Facebook's RocksDB embeddable database, fork for Nextgraph.org" description = "Rust wrapper for Facebook's RocksDB embeddable database, fork for Nextgraph.org"
version = "0.21.0-ngpreview.4" version = "0.21.0-ngalpha.5"
edition = "2018" edition = "2018"
rust-version = "1.60" rust-version = "1.60"
authors = ["Tyler Neely <t@jujit.su>", "David Greenberg <dsg123456789@gmail.com>"] authors = ["Tyler Neely <t@jujit.su>", "David Greenberg <dsg123456789@gmail.com>"]

@ -196,7 +196,9 @@ fn build_rocksdb() {
config.define("ROCKSDB_LIB_IO_POSIX", None); config.define("ROCKSDB_LIB_IO_POSIX", None);
env::set_var("IPHONEOS_DEPLOYMENT_TARGET", "12.0"); env::set_var("IPHONEOS_DEPLOYMENT_TARGET", "12.0");
} else if target.contains("darwin") { } else if target.contains("darwin") {
config.flag("-march=haswell"); if !target.contains("aarch64-apple-darwin") {
config.flag("-march=haswell");
}
config.define("OS_MACOSX", None); config.define("OS_MACOSX", None);
config.define("ROCKSDB_PLATFORM_POSIX", None); config.define("ROCKSDB_PLATFORM_POSIX", None);
config.define("ROCKSDB_LIB_IO_POSIX", None); config.define("ROCKSDB_LIB_IO_POSIX", None);

Loading…
Cancel
Save