From 1a9def139e75cdc278ef9cae9a33db4aa8ca87d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Miku=C5=82a?= Date: Sun, 23 Aug 2020 15:55:18 +0200 Subject: [PATCH] Profiler: reenable atomics after #65214 --- library/profiler_builtins/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"));