Skip to content

Commit 1a9def1

Browse files
committed
Profiler: reenable atomics after rust-lang#65214
1 parent 1a22a0f commit 1a9def1

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)