From c501c31a459c9152232d600d359c29fa5ece0e30 Mon Sep 17 00:00:00 2001 From: Niko PLP Date: Wed, 20 Nov 2024 06:19:42 +0200 Subject: [PATCH] fix apple silicon build, bump version ngalpaha.5 --- Cargo.toml | 2 +- librocksdb-sys/build.rs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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);