[libcxx-commits] [libcxx] [libc++] Introduce a new attribute keyword for Clang improves compatibility with Mingw-GCC (PR #141040)
via libcxx-commits
libcxx-commits at lists.llvm.org
Thu May 22 10:22:39 PDT 2025
jeremyd2019 wrote:
> In MinGW environment, Clang handles dllexport attribute of internal class that defined in class template in different way from GCC. This incompatibility should be fixed but breaks ABI of libc++, so we need to introduce the new keyword to keep ABI in MinGW environment with old and patched Clang and to stay ABI compatible on other platforms.
I believe we established that dllexport and dllimport are handled the same between Clang and GCC, and it is the more mundane `extern` that is handled differently.
https://github.com/llvm/llvm-project/pull/141040
More information about the libcxx-commits
mailing list