Commit dbd600d6 by Nicolas Capens Committed by Nicolas Capens

Enable disabling API-based TLS support.

BUG=swiftshader:7 Change-Id: I0ef3b0ab059bd48e0241eea13a5b77a193351108 Reviewed-on: https://chromium-review.googlesource.com/380275Reviewed-by: 's avatarJim Stichnoth <stichnot@chromium.org> Tested-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 17f04f0a
......@@ -52,8 +52,11 @@
///
/// \def ICE_THREAD_LOCAL_HACK
///
#define ICE_THREAD_LOCAL_HACK
#ifdef ICE_THREAD_LOCAL_HACK
#ifndef ICE_THREAD_LOCAL_HACK
#define ICE_THREAD_LOCAL_HACK 1
#endif
#if ICE_THREAD_LOCAL_HACK
// For a static thread_local field F of a class C, instead of declaring and
// defining C::F, we create two static fields:
......
......@@ -16,6 +16,8 @@
#include "IceDefs.h"
#include "llvm/Support/ErrorHandling.h"
#include <climits>
namespace Ice {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment