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

Nicola Gigante nicola.gigante at gmail.com
Mon Apr 7 05:00:32 PDT 2014


Il giorno 07/apr/2014, alle ore 12:01, Jean-Daniel Dupas <mailing at xenonium.com> ha scritto:

> 
> 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.

Ok!
Thank you very much for the clarification!

Bye,
Nicola
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140407/dae21ddd/attachment.html>


More information about the cfe-dev mailing list