Skip to content

Commit

Permalink
Replace obsolete comment about target_has_atomic support
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Dec 11, 2022
1 parent 6159ead commit 650358f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions serde/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,10 @@ fn main() {
println!("cargo:rustc-cfg=no_relaxed_trait_bounds");
}

// Whitelist of archs that support std::sync::atomic module. Ideally we
// would use #[cfg(target_has_atomic = "...")] but it is not stable yet.
// Instead this is based on rustc's compiler/rustc_target/src/spec/*.rs.
if minor < 60 {
println!("cargo:rustc-cfg=no_target_has_atomic");
// Allowlist of archs that support std::sync::atomic module. This is
// based on rustc's compiler/rustc_target/src/spec/*.rs.
let has_atomic64 = target.starts_with("x86_64")
|| target.starts_with("i686")
|| target.starts_with("aarch64")
Expand Down

0 comments on commit 650358f

Please sign in to comment.