1
Fork 0

Profiler: reenable atomics after #65214

This commit is contained in:
Mateusz Mikuła 2020-08-23 15:55:18 +02:00
parent 1a22a0ff93
commit 1a9def139e

View file

@ -65,7 +65,7 @@ fn main() {
// This should be a pretty good heuristic for when to set // This should be a pretty good heuristic for when to set
// COMPILER_RT_HAS_ATOMICS // COMPILER_RT_HAS_ATOMICS
if env::var_os("CARGO_CFG_TARGET_HAS_ATOMIC") 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) .unwrap_or(false)
{ {
cfg.define("COMPILER_RT_HAS_ATOMICS", Some("1")); cfg.define("COMPILER_RT_HAS_ATOMICS", Some("1"));