summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Versace <chad.versace@linux.intel.com>2013-07-10 06:24:56 -0700
committerChad Versace <chad.versace@linux.intel.com>2013-07-19 19:15:36 -0700
commitf3b201604691c1c67c8a1a518ddcbcd26509223d (patch)
tree3af17870cc92607ca86394d26109f53cccc39ee9
parent0b30747b267dc20c2cc062272a0fe97aba1600ac (diff)
Revert "cmake: Require that compiler support keyword '__thread'"
This reverts commit e2cbb8648aeee9856b7897f9fa06bdd771c39ec0. The reverted patch, if you used clang, effectively made clang>=3.2 or non-ancient gcc a requirement. XCode 3.1 ships with an old version of gcc that does not support TLS. There are Waffle users that require support for XCode 3.1. Tested on Mac OS with XCode 3.1 gcc and XCode 4.6.2 clang by Nigel. Tested-by: Nigel Stewart <nigelstewart@gmail.com> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 289dd8b..45c3385 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)