diff --git a/Cargo.toml b/Cargo.toml index db2c1bb..29588a0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "ng-rocksdb" 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" rust-version = "1.60" authors = ["Tyler Neely ", "David Greenberg "] diff --git a/librocksdb-sys/build.rs b/librocksdb-sys/build.rs index 7b58e4d..0633a34 100644 --- a/librocksdb-sys/build.rs +++ b/librocksdb-sys/build.rs @@ -196,7 +196,9 @@ fn build_rocksdb() { config.define("ROCKSDB_LIB_IO_POSIX", None); env::set_var("IPHONEOS_DEPLOYMENT_TARGET", "12.0"); } 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("ROCKSDB_PLATFORM_POSIX", None); config.define("ROCKSDB_LIB_IO_POSIX", None);