about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-08-25 11:53:07 +0000
committerbors <bors@rust-lang.org>2020-08-25 11:53:07 +0000
commit589056385948de7d3fac7b9365a3c79ce0f36758 (patch)
treedfd319a03fb43a70d297080d92025ef2b3945df1
parentc35007dbbe4846c641b5edad9fddf3f72a5a035a (diff)
parent1a9def139e75cdc278ef9cae9a33db4aa8ca87d9 (diff)
downloadrust-589056385948de7d3fac7b9365a3c79ce0f36758.tar.gz
rust-589056385948de7d3fac7b9365a3c79ce0f36758.zip
Auto merge of #75838 - mati865:profiler-atomics, r=Amanieu
Profiler: reenable atomics after #65214
-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"));