mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +00:00
Merge pull request #925 from TroutZhang/patch-1
Fix crash on Android due to wrong TLS model
This commit is contained in:
commit
5120ad8311
@ -690,7 +690,9 @@ static pthread_key_t _memory_thread_heap;
|
||||
# define _Thread_local __declspec(thread)
|
||||
# define TLS_MODEL
|
||||
# else
|
||||
# ifndef __HAIKU__
|
||||
# if defined(__ANDROID__) && __ANDROID_API__ >= 29 && defined(__NDK_MAJOR__) && __NDK_MAJOR__ >= 26
|
||||
# define TLS_MODEL __attribute__((tls_model("local-dynamic")))
|
||||
# elif !defined(__HAIKU__)
|
||||
# define TLS_MODEL __attribute__((tls_model("initial-exec")))
|
||||
# else
|
||||
# define TLS_MODEL
|
||||
|
Loading…
Reference in New Issue
Block a user