Skip to content

Commit

Permalink
Merge pull request #2141 from Avimitin/risc-v
Browse files Browse the repository at this point in the history
Enable atomic64 on riscv64 arch
  • Loading branch information
dtolnay committed Dec 16, 2021
2 parents ab1ca04 + 84fdc7d commit 0508cb5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion serde/build.rs
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 0508cb5

Please sign in to comment.