Skip to content

Commit

Permalink
Mention target_has_atomic stabilization
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Dec 11, 2022
1 parent 650358f commit 37faaf2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions serde/build.rs
Expand Up @@ -92,6 +92,7 @@ fn main() {
println!("cargo:rustc-cfg=no_relaxed_trait_bounds");
}

// Support for #[cfg(target_has_atomic = "...")] stabilized in Rust 1.60.
if minor < 60 {
println!("cargo:rustc-cfg=no_target_has_atomic");
// Allowlist of archs that support std::sync::atomic module. This is
Expand Down

0 comments on commit 37faaf2

Please sign in to comment.