about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--library/profiler_builtins/build.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/profiler_builtins/build.rs b/library/profiler_builtins/build.rs
index 0605ca4d94f..b674f73ebf3 100644
--- a/library/profiler_builtins/build.rs
+++ b/library/profiler_builtins/build.rs
@@ -65,7 +65,7 @@ fn main() {
     // This should be a pretty good heuristic for when to set
     // COMPILER_RT_HAS_ATOMICS
     if env::var_os("CARGO_CFG_TARGET_HAS_ATOMIC")
-        .map(|features| features.to_string_lossy().to_lowercase().contains("cas"))
+        .map(|features| features.to_string_lossy().to_lowercase().contains("ptr"))
         .unwrap_or(false)
     {
         cfg.define("COMPILER_RT_HAS_ATOMICS", Some("1"));