This is an archive of the discontinued LLVM Phabricator instance.

[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
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

Diff Detail

Event Timeline

ldionne created this revision.May 6 2022, 11:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 6 2022, 11:59 AM
Herald added a subscriber: dberris. · View Herald Transcript
ldionne requested review of this revision.May 6 2022, 11:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 6 2022, 11:59 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript

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 not accepted when it landed; it landed in state Needs Review.May 6 2022, 2:37 PM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.