Disable reed-solomon-erasure/simd-accel feature on aarch64 (Apple M1)
This feature requires clang to support -march=native on M1. Before this change, cargo build would output a build error when building for aarch64.
This commit is contained in:
committed by
Michael Vines
parent
193813d49a
commit
8a9b7f5ef2
@ -78,5 +78,10 @@ exclude = [
|
|||||||
"programs/bpf",
|
"programs/bpf",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# TODO: Remove once the "simd-accel" feature from the reed-solomon-erasure
|
||||||
|
# dependency is supported on Apple M1. v2 of the feature resolver is needed to
|
||||||
|
# specify arch-specific features.
|
||||||
|
resolver = "2"
|
||||||
|
|
||||||
[profile.dev]
|
[profile.dev]
|
||||||
split-debuginfo = "unpacked"
|
split-debuginfo = "unpacked"
|
||||||
|
@ -30,7 +30,6 @@ prost = "0.7.0"
|
|||||||
rand = "0.7.0"
|
rand = "0.7.0"
|
||||||
rand_chacha = "0.2.2"
|
rand_chacha = "0.2.2"
|
||||||
rayon = "1.5.0"
|
rayon = "1.5.0"
|
||||||
reed-solomon-erasure = { version = "4.0.2", features = ["simd-accel"] }
|
|
||||||
serde = "1.0.126"
|
serde = "1.0.126"
|
||||||
serde_bytes = "0.11.5"
|
serde_bytes = "0.11.5"
|
||||||
sha2 = "0.9.5"
|
sha2 = "0.9.5"
|
||||||
@ -56,6 +55,14 @@ tokio = { version = "1", features = ["full"] }
|
|||||||
tokio-stream = "0.1"
|
tokio-stream = "0.1"
|
||||||
trees = "0.2.1"
|
trees = "0.2.1"
|
||||||
|
|
||||||
|
# Disable reed-solomon-erasure/simd-accel feature on aarch64 only since it
|
||||||
|
# requires clang to support -march=native.
|
||||||
|
[target.'cfg(any(target_arch = "aarch64", target_arch = "aarch64_apple_darwin"))'.dependencies]
|
||||||
|
reed-solomon-erasure = { version = "4.0.2" }
|
||||||
|
|
||||||
|
[target.'cfg(not(any(target_arch = "aarch64", target_arch = "aarch64_apple_darwin")))'.dependencies]
|
||||||
|
reed-solomon-erasure = { version = "4.0.2", features = ["simd-accel"] }
|
||||||
|
|
||||||
[dependencies.rocksdb]
|
[dependencies.rocksdb]
|
||||||
# Avoid the vendored bzip2 within rocksdb-sys that can cause linker conflicts
|
# Avoid the vendored bzip2 within rocksdb-sys that can cause linker conflicts
|
||||||
# when also using the bzip2 crate
|
# when also using the bzip2 crate
|
||||||
|
Reference in New Issue
Block a user