[waffle] [PATCH 4/4] Revert "cmake: Require that compiler support keyword '__thread'"

Chad Versace chad.versace at linux.intel.com
Thu Jul 11 00:12:46 PDT 2013


This reverts commit e2cbb8648aeee9856b7897f9fa06bdd771c39ec0.

The reverted patch, if you used clang, effectively made clang>=3.2
a requirement.

XCode 3.1 ships with an old version of clang that does not support TLS.
There are Waffle users that require support for Mac OS 10.5, for which
XCode 3.1 is the last supported version.

Signed-off-by: Chad Versace <chad.versace at linux.intel.com>
---
 CMakeLists.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7b11572..f30a619 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -223,8 +223,8 @@ set(CMAKE_C_FLAGS_DEBUG "-g3 -O0 -DDEBUG")
 # single-stepping.
 set(CMAKE_C_FLAGS_RELEASE "-g1 -O2 -DNDEBUG")
 
-if(NOT waffle_has_tls)
-    message(FATAL "Compiler does not support thread local storage with keyword '__thread'")
+if(waffle_has_tls)
+    add_definitions(-DWAFFLE_HAS_TLS)
 endif()
 
 if(waffle_has_tls_model_initial_exec)
-- 
1.8.3.1



More information about the waffle mailing list