On Mon, 2 Aug 2021, Dmitry Kozlyuk wrote:
Does MinGW-w64 builds support native thread-local storage (TLS), i.e. placing TLS variables to the array pointed via TEB? I'm trying to find a way to use TLS from a shared library, even if through a macro, that will work for both MinGW-w64 and clang at the same time (i.e. no #ifdef when accessing).
The simplest way to achieve this probably is to use -femulated-tls when building with clang, to make clang produce the same kind of code that GCC does for the TLS variables.
// Martin _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
