mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Profiler: reenable atomics after #65214
This commit is contained in:
parent
1a22a0ff93
commit
1a9def139e
@ -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"));
|
||||
|
Loading…
Reference in New Issue
Block a user