[libcxx-commits] [libcxx] [libc++][test] Workaround for atomic tests linker errors on Linux systems without libatomic.so (PR #73398)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Nov 30 06:49:00 PST 2023
ldionne wrote:
That would be amazing. Basically, my point of view (and I know it's shared by @huixie90) is that any platform where the compiler allows you to write something like `__atomic_load(...)` and fails to link that -- is a broken platform. That's why we filed https://github.com/llvm/llvm-project/issues/73361, for example.
Basically, the compiler should ensure that it links against the right system and/or toolchain libraries to make your code work. It does it for the C library, for the C++ library, for the unwinder library, but I have no idea why it doesn't do it for some obscure builtins it provides. IMO, that's just a bug that has been around for so long that people think it's "designed like that". So if you have the ability to fix this on at least one platform (MinGW), you have my full support.
https://github.com/llvm/llvm-project/pull/73398
More information about the libcxx-commits
mailing list