From 84fdc7df69cd66f74f9621bb81917e7f622e5926 Mon Sep 17 00:00:00 2001 From: Avimitin Date: Tue, 14 Dec 2021 20:30:28 +0800 Subject: [PATCH] Enable atomic64 on riscv64 arch Signed-off-by: Avimitin --- serde/build.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/serde/build.rs b/serde/build.rs index 52834bfbe..35a74a5cf 100644 --- a/serde/build.rs +++ b/serde/build.rs @@ -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");