[PATCH] D54456: [libcxx] Allow use of <atomic> in baremetal systems when threading is disabled.

JF Bastien via Phabricator reviews at reviews.llvm.org
Tue Nov 13 09:48:29 PST 2018

jfb requested changes to this revision.
jfb added a comment.

In https://reviews.llvm.org/D54456#1297067, @ldionne wrote:

> I strongly feel like this should be part of a Freestanding effort with an overarching design. I haven't seen any of this yet.
> So: I want this, but I want to know (and agree on) how we're going to do the rest, too.

I absolutely agree. The C++ committee has an ongoing effort to define "freestanding" better, and atomic is tentatively part of this. In particular, you really have to figure out what to do with atomics which aren't lock-free, you can't just turn it on without a rationale.

I don't think we want to move forward with this without being close to what the committee is doing, otherwise "baremetal" will just be some odd duckling.


More information about the libcxx-commits mailing list