Profiler: reenable atomics after #65214
This commit is contained in:
parent
1a22a0ff93
commit
1a9def139e
1 changed files with 1 additions and 1 deletions
|
@ -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"));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue