diff options
author | Chad Versace <chad.versace@linux.intel.com> | 2013-04-22 10:14:58 +0200 |
---|---|---|
committer | Chad Versace <chad.versace@linux.intel.com> | 2013-04-22 11:08:50 +0200 |
commit | e2cbb8648aeee9856b7897f9fa06bdd771c39ec0 (patch) | |
tree | 71c5b898fee7c7d2b4f525a8ba19582ef452f607 /CMakeLists.txt | |
parent | 32dccd3c9a244279d6c90e27064d9f4a82cfb42c (diff) |
cmake: Require that compiler support keyword '__thread'
GCC has supported thread local storage through the keyword '__thread' for
a long time. Clang has supported it since 3.2. If you use clang, this
patch effectively makes clang>=3.2 a requirement.
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5fc4467..4b4e0d6 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(waffle_has_tls) - add_definitions(-DWAFFLE_HAS_TLS) +if(NOT waffle_has_tls) + message(FATAL "Compiler does not support thread local storage with keyword '__thread'") endif() if(waffle_has_tls_model_initial_exec) |