Skip to content

Commit c501c31

Browse files
committed
fix apple silicon build, bump version ngalpaha.5
1 parent f1ce2e3 commit c501c31

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "ng-rocksdb"
33
description = "Rust wrapper for Facebook's RocksDB embeddable database, fork for Nextgraph.org"
4-
version = "0.21.0-ngpreview.4"
4+
version = "0.21.0-ngalpha.5"
55
edition = "2018"
66
rust-version = "1.60"
77
authors = ["Tyler Neely <t@jujit.su>", "David Greenberg <dsg123456789@gmail.com>"]

librocksdb-sys/build.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,9 @@ fn build_rocksdb() {
196196
config.define("ROCKSDB_LIB_IO_POSIX", None);
197197
env::set_var("IPHONEOS_DEPLOYMENT_TARGET", "12.0");
198198
} else if target.contains("darwin") {
199-
config.flag("-march=haswell");
199+
if !target.contains("aarch64-apple-darwin") {
200+
config.flag("-march=haswell");
201+
}
200202
config.define("OS_MACOSX", None);
201203
config.define("ROCKSDB_PLATFORM_POSIX", None);
202204
config.define("ROCKSDB_LIB_IO_POSIX", None);

0 commit comments

Comments
 (0)