Since D97044, libc++ implements <stdatomic.h>, which is not compatible
with the <atomic> header in C++03 mode. To fix the tests, avoid using
<stdatomic.h> at all, since it is not strictly required.
rdar://92867529
Paths
| Differential D125118
[compiler-rt] Fix issue with compiler-rt tests mixing <atomic> and <stdatomic.h> ClosedPublic Authored by ldionne on May 6 2022, 11:59 AM.
Details Summary Since D97044, libc++ implements <stdatomic.h>, which is not compatible rdar://92867529
Diff Detail
Event TimelineComment Actions I'll ship this right now to unbreak the Green Dragon build (I've verified this locally). If reviewers have comments, I'll be happy to address them post-review. I'd just like to fix the build before leaving for the week-end. This revision was landed with ongoing or failed builds. Closed by commit rGa097c4ce9533: [compiler-rt] Fix issue with compiler-rt tests mixing <atomic> and <stdatomic.h> (authored by ldionne). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 427751 compiler-rt/test/tsan/Darwin/libcxx-shared-ptr-stress.mm
compiler-rt/test/tsan/libdispatch/groups-destructor.cpp
|