From b9fd33c473a1a738cf828da6516809a818fa66df Mon Sep 17 00:00:00 2001 From: Frank Celler Date: Fri, 20 Jun 2014 15:34:55 +0200 Subject: [PATCH] LLVM does not know __thread --- lib/BasicsC/operating-system.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/BasicsC/operating-system.h b/lib/BasicsC/operating-system.h index 6eeed2deb3..6c46a578e6 100644 --- a/lib/BasicsC/operating-system.h +++ b/lib/BasicsC/operating-system.h @@ -132,6 +132,10 @@ #define TRI_HAVE_GETLINE 1 #endif +#if __llvm__ == 1 +#define thread_local __thread +#endif + //////////////////////////////////////////////////////////////////////////////// /// @brief alignment and limits ////////////////////////////////////////////////////////////////////////////////