Skip to content

Commit

Permalink
Enable atomic64 on riscv64 arch
Browse files Browse the repository at this point in the history
Signed-off-by: Avimitin <avimitin@gmail.com>
  • Loading branch information
Avimitin committed Dec 14, 2021
1 parent ab1ca04 commit 84fdc7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion serde/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 84fdc7d

Please sign in to comment.