In-kernel fix for assert on std::atomic::is_always_lock_free

So im trying to compile the angle lib and in renderer/serial_utils.h there is a static assert that std::atomic’s is_always_lock_free is true.

I’m compiling for an old PowerPC machine (It’s a G4/MPC7447). In the reference guide it states it has atomic memory instructions (lwarx and stwcx)

however the assert is failing.

EDIT:
Or are there any compiler/C++ implementation changes that i could make have it implement the atomic operations using these instructions if thats not already the case?

This is on Gentoo for PowerPC using a custom kernel config so perhaps i’ve configured it wrong?

Is there anything in the kernel config I can set or am I S.O.O.L.?

And advice is appreciated.
Kind regards Josh “Hakaru” C.

Right i’ve written some tests and all of of the atomic datatypes up to (and including) (u)int32_t have atomic operations.

The (u)int64_t data type doesn’t probably because it is a 32bit machine.

Are there any workarounds?

Kind regards Josh “Hakaru” C.