Apple Clang does not support thread_local

Discussion of issues specific to mobile platforms such as iOS, Android, Symbian and Meego.
jiangpengyun
Gnoblar
Posts: 1
Joined: Thu Dec 29, 2016 6:32 am

Apple Clang does not support thread_local

Post by jiangpengyun »

hello,I tried compile ogre on mac os x for ios and failed

it seems that apple clang does not (and won't) support thread_local keyword

i am wondering how to compile it with c++11 thread support, boost is quite large

hope someone could give me a hand, thanks very much



and by the way
is there a up-to-date compiling manual???
the wiki seems out of date
iOS dependencies on sourceforge is quite old too
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5433
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1341

Re: Apple Clang does not support thread_local

Post by dark_sylinc »

Set OGRE_CONFIG_THREADS to 0 and OGRE_CONFIG_THREAD_PROVIDER to "none" (no quotes)