<commit_before>include(CheckCXXSourceCompiles)

CHECK_CXX_SOURCE_COMPILES("
static thread_local int tls;
int main(void)
{
  return 0;
}" HAVE_CXX_THREAD_LOCAL)
if(HAVE_CXX_THREAD_LOCAL)
  return()
endif()

CHECK_CXX_SOURCE_COMPILES("
static __thread int tls;
int main(void)
{
  return 0;
}" HAVE_GCC_THREAD_LOCAL)
if(HAVE_GCC_THREAD_LOCAL)<commit_msg>[CMake] Fix thread-local.cmake - fails because of -Werror<commit_after>include(CheckCXXSourceCompiles)

CHECK_CXX_SOURCE_COMPILES("
static thread_local int tls;
int main(void)
{
  (void)tls;
  return 0;
}" HAVE_CXX_THREAD_LOCAL)
if(HAVE_CXX_THREAD_LOCAL)
  return()
endif()

CHECK_CXX_SOURCE_COMPILES("
static __thread int tls;
int main(void)
{
  (void)tls;
  return 0;
}" HAVE_GCC_THREAD_LOCAL)
if(HAVE_GCC_THREAD_LOCAL)
{'fraction_non_alphanumeric': 0.10103626943005181, 'fraction_numerical': 0.0051813471502590676, 'mean_word_length': 7.588888888888889, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '796616', 'n_tokens_mistral': 318, 'n_tokens_neox': 293, 'n_words': 57}