[cfe-dev] clang3.4 and C++11 thread_local on OS X

Jean-Daniel Dupas mailing at xenonium.com
Mon Apr 7 03:01:20 PDT 2014


Le 7 avr. 2014 à 11:37, Nicola Gigante <nicola.gigante at gmail.com> a écrit :

> 
> 
> Il giorno 07/apr/2014, alle ore 11:18, Jean-Daniel Dupas <mailing at xenonium.com> ha scritto:
> 
>> 
>> Le 5 avr. 2014 à 18:46, Nicola Gigante <nicola.gigante at gmail.com> a écrit :
>> 
>>> 
>>> Hello...
>>> 
>>> From the C++11 status page it seems that thread_local is supported from clang 3.3,
>>> but with clang 3.4 shipped with xcode 5.1 I get:
>>> 
>>> error: thread-local storage is unsupported for the current target
>> 
>> What is your project "Deployment Target" build setting ?
>> 
>> 
> It's "OS X 10.9”, and the architecture is x86_64

IIRC, the OS X support has been implemented in clang between clang 3.4 and 3.5. I though it was already available in Xcode but look like you're right.

So, using C++ thread_local already works with actual clang release and TOT and will hopefully appears soon in Xcode too.






More information about the cfe-dev mailing list