Skip to content

Commit

Permalink
Profiler: reenable atomics after rust-lang#65214
Browse files Browse the repository at this point in the history
  • Loading branch information
mati865 committed Aug 23, 2020
1 parent 1a22a0f commit 1a9def1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/profiler_builtins/build.rs
Expand Up @@ -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"));
Expand Down

0 comments on commit 1a9def1

Please sign in to comment.