Workaround arm64/clang crashes by avoiding TLS.

We only use it in these two places, it should be okay for now.  Still not
working on r13 on a SHIELD TV.
This commit is contained in:
Unknown W. Brackets 2016-10-08 12:08:19 -07:00
parent 55c9838132
commit a8e108e233
2 changed files with 6 additions and 1 deletions

View File

@ -23,6 +23,10 @@
#if defined(__APPLE__) || defined(__SYMBIAN32__)
#define __thread
#endif
// Experiencing emutls crashes on ARM64 Android, so disabling for now.
#if defined(ANDROID) && !defined(ARM64)
#define __thread
#endif
#ifdef _WIN32
#include "CommonWindows.h"

View File

@ -1,7 +1,8 @@
#ifdef _WIN32
#include <windows.h>
#define TLS_SUPPORTED
#elif defined(ANDROID)
// Experiencing emutls crashes on ARM64 Android, so disabling for now.
#elif defined(ANDROID) && !defined(ARM64)
#define TLS_SUPPORTED
#endif