topperc wrote: What does gcc do? If something compiled with gcc uses libatomic and something compiled with llvm uses cmpxchg, I don't think they can be linked together. https://github.com/llvm/llvm-project/pull/142645