Skip to content

Commit 5890563

Browse files
committed
Auto merge of rust-lang#75838 - mati865:profiler-atomics, r=Amanieu
Profiler: reenable atomics after rust-lang#65214
2 parents c35007d + 1a9def1 commit 5890563

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/profiler_builtins/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ fn main() {
6565
// This should be a pretty good heuristic for when to set
6666
// COMPILER_RT_HAS_ATOMICS
6767
if env::var_os("CARGO_CFG_TARGET_HAS_ATOMIC")
68-
.map(|features| features.to_string_lossy().to_lowercase().contains("cas"))
68+
.map(|features| features.to_string_lossy().to_lowercase().contains("ptr"))
6969
.unwrap_or(false)
7070
{
7171
cfg.define("COMPILER_RT_HAS_ATOMICS", Some("1"));

0 commit comments

Comments
 (0)