Skip to content

Commit 41a2159

Browse files
committed
cmake: Rename build option THREADLOCAL to ENABLE_THREADLOCAL
1 parent bed5fea commit 41a2159

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ if(WITH_BDB)
101101
endif()
102102
cmake_dependent_option(BUILD_WALLET_TOOL "Build bitcoin-wallet tool." ON "ENABLE_WALLET" OFF)
103103

104-
option(THREADLOCAL "Enable features that depend on the C++ thread_local keyword (currently just thread names in debug logs)." ON)
104+
option(ENABLE_THREADLOCAL "Enable features that depend on the C++ thread_local keyword (currently just thread names in debug logs)." ON)
105105
option(ENABLE_HARDENING "Attempt to harden the resulting executables." ON)
106106
option(REDUCE_EXPORTS "Attempt to reduce exported symbols in the resulting executables." OFF)
107107
option(WERROR "Treat compiler warnings as errors." OFF)

cmake/module/AddThreadsIfNeeded.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function(add_threads_if_needed)
3434
- https://github.com/bitcoin/bitcoin/pull/16059
3535
- https://groups.google.com/d/msg/bsdmailinglist/22ncTZAbDp4/Dii_pII5AwAJ
3636
]=]
37-
elseif(THREADLOCAL)
37+
elseif(ENABLE_THREADLOCAL)
3838
target_compile_definitions(core_interface INTERFACE
3939
"$<$<COMPILE_FEATURES:cxx_thread_local>:HAVE_THREAD_LOCAL>"
4040
)

0 commit comments

Comments
 (0)