Enable atomic64 on riscv64 arch

Signed-off-by: Avimitin <avimitin@gmail.com>
This commit is contained in:
Avimitin
2021-12-14 20:30:28 +08:00
parent ab1ca04b2e
commit 84fdc7df69
+2 -1
View File
@@ -97,7 +97,8 @@ fn main() {
|| target.starts_with("aarch64")
|| target.starts_with("powerpc64")
|| target.starts_with("sparc64")
|| target.starts_with("mips64el");
|| target.starts_with("mips64el")
|| target.starts_with("riscv64");
let has_atomic32 = has_atomic64 || emscripten;
if has_atomic64 {
println!("cargo:rustc-cfg=std_atomic64");