Skip to content

Commit 33cd428

Browse files
committed
try to compile on M1 apple silicon
1 parent 2ed4d80 commit 33cd428

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
url = https://github.com/google/snappy.git
44
[submodule "rocksdb_sys/rocksdb"]
55
path = librocksdb-sys/rocksdb
6-
url = https://github.com/facebook/rocksdb.git
6+
url = https://github.com/hdevalence/rocksdb.git
77
[submodule "librocksdb-sys/lz4"]
88
path = librocksdb-sys/lz4
99
url = https://github.com/lz4/lz4.git

librocksdb-sys/build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ fn build_rocksdb() {
114114
}
115115
}
116116

117+
if target.contains("aarch64") {
118+
lib_sources.push("util/crc32c_arm64.cc")
119+
}
120+
117121
if target.contains("darwin") {
118122
config.define("OS_MACOSX", Some("1"));
119123
config.define("ROCKSDB_PLATFORM_POSIX", Some("1"));

librocksdb-sys/rocksdb

0 commit comments

Comments
 (0)