Support building solana-program on 32-bit architectures that do not (#21577)

have 64-bit atomics by using a Mutex<u64> on 32-bit architectures.

Currently the usage of atomics are only in functions that support
tests and benchmarks.
This commit is contained in:
Jarred Nicholls
2021-12-02 20:18:21 -05:00
committed by GitHub
parent 1ae9cdcb43
commit 18a16ad956
9 changed files with 53 additions and 9 deletions

View File

@ -19,7 +19,7 @@ bs58 = "0.4.0"
bytemuck = { version = "1.7.2", features = ["derive"] }
bv = { version = "0.11.1", features = ["serde"] }
hex = "0.4.2"
itertools = "0.10.1"
itertools = "0.10.1"
lazy_static = "1.4.0"
log = "0.4.14"
num-derive = "0.3"
@ -44,6 +44,9 @@ rand = "0.7.0"
solana-logger = { path = "../../logger", version = "=1.9.0" }
itertools = "0.10.1"
[target.'cfg(not(target_pointer_width = "64"))'.dependencies]
parking_lot = "0.11"
[dev-dependencies]
static_assertions = "1.1.0"
assert_matches = "1.3.0"