Skip to content

Commit

Permalink
Print status of TLS for CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
albinahlback committed Nov 18, 2023
1 parent c816786 commit d009ed9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,14 @@ check_c_source_compiles([[#define _GNU_SOURCE
unset(CMAKE_REQUIRED_FLAGS)

# Thread-local storage configuration
message(STATUS "Checking whether thread local storage is available")
if(cxx_thread_local IN_LIST CMAKE_CXX_COMPILE_FEATURES)
set(FLINT_USES_TLS ON CACHE BOOL "Use thread local storage.")
set(FLINT_USES_TLS ON CACHE BOOL "Use thread local storage.")
endif()
if(FLINT_USES_TLS)
message(STATUS "Checking whether thread local storage is available - yes")
else()
message(STATUS "Checking whether thread local storage is available - no")
endif()

# Memory manager configuration
Expand Down

0 comments on commit d009ed9

Please sign in to comment.