build: disable thread_local if the thread is not supported.
authorHermet Park <chuneon.park@samsung.com>
Tue, 10 Mar 2020 14:20:33 +0000 (23:20 +0900)
committerHermet Park <chuneon.park@samsung.com>
Thu, 12 Mar 2020 10:01:42 +0000 (19:01 +0900)
Some version of ios/i386 compiler doesn support this thread_local feature.

Actually, thread_local doesn't necessary if the thread doesn't supported.

Change-Id: Ifcebef55f0809603695ce83cf4b35edab2e87188

meson.build

index f8374e0..f379975 100644 (file)
@@ -14,6 +14,8 @@ config_h = configuration_data()
 
 if get_option('thread') == true
     config_h.set10('LOTTIE_THREAD_SUPPORT', true)
+else
+    config_h.set('thread_local', true)
 endif
 
 if get_option('module') == true