Meinersbur wrote:

I do have `libatomic.a` in my MinGW installation. The patch should only apply 
to MSVC build enviroment (cl.exe and link.exe). The command line switch 
wouldn't be `-l` anyway. The summary mentioned it was only a warning anyway.

Since LLVM may emit libgcc-style atomic calls, the only things that could 
provide them would be clang_rt.builtins.lib. These are disabled by default, 
`COMPILER_RT_EXCLUDE_ATOMIC_BUILTIN=On`:
https://github.com/llvm/llvm-project/blob/ece83ed7dfe6ef65ac100efcc61f50a2a337436a/compiler-rt/lib/builtins/CMakeLists.txt#L232-L234

There also is an option to create an equivalent to libatomic: 
`clang_rt.atomic.lib` (`COMPILER_RT_BUILD_STANDALONE_LIBATOMIC`), even on 
Windows (I think).


https://github.com/llvm/llvm-project/pull/164648
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to