Fix 32-bit ARM build (#754)

master
Tobias 2 years ago committed by GitHub
parent 9157df0c6f
commit a6103ef311
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      librocksdb-sys/build.rs

@ -226,6 +226,11 @@ fn build_rocksdb() {
config.define("ROCKSDB_IOURING_PRESENT", Some("1")); config.define("ROCKSDB_IOURING_PRESENT", Some("1"));
} }
if env::var("CARGO_CFG_TARGET_POINTER_WIDTH").unwrap() != "64" {
config.define("_FILE_OFFSET_BITS", Some("64"));
config.define("_LARGEFILE64_SOURCE", Some("1"));
}
if target.contains("msvc") { if target.contains("msvc") {
config.flag("-EHsc"); config.flag("-EHsc");
config.flag("-std:c++17"); config.flag("-std:c++17");

Loading…
Cancel
Save