Skip to content
This repository has been archived by the owner on Feb 26, 2020. It is now read-only.

Support old CPUs #22

Merged
merged 3 commits into from
Oct 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rocksdb-sys/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "parity-rocksdb-sys"
version = "0.5.2"
version = "0.5.3"
authors = ["Tyler Neely <t@jujit.su>", "David Greenberg <dsg123456789@gmail.com>", "Parity Technologies <admin@parity.io>"]
license = "MIT/Apache-2.0/BSD-3-Clause"
description = "Native bindings to librocksdb"
Expand Down
8 changes: 7 additions & 1 deletion rocksdb-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ fn main() {
let target_arch = env::var("CARGO_CFG_TARGET_ARCH")
.expect("CARGO_CFG_TARGET_ARCH is set by cargo.");

if target_arch == "arm" || target_arch == "aarch64" {
// Added to support old CPUs
// see https://github.com/paritytech/parity-ethereum/issues/9684
let portable = match &*env::var("PORTABLE").unwrap_or("ON".to_owned()) {
"OFF" => false,
_ => true,
};
if portable {
cfg.define("PORTABLE", "ON");
}

Expand Down