aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2026-01-05 18:04:17 +0300
committerlevlam <levlam@telegram.org>2026-01-05 18:04:17 +0300
commit62287f95d29afc33c91d67b7c81912e31b7285e4 (patch)
tree6ccbe23306ae56e3be50c649a391c1fe6e62e23b
parentce4e8fc4644ae1a9ef452199a72c5865879b8800 (diff)
Always disable constexpr mutex constructor just in case.
-rw-r--r--CMakeLists.txt7
1 files changed, 3 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fc582704c..cb9b7aced 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -119,10 +119,9 @@ if (MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
endif()
- if (TD_ENABLE_JNI)
- # https://github.com/tdlib/td/issues/2912
- add_definitions(-D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR)
- endif()
+ # https://github.com/tdlib/td/issues/2912
+ # https://github.com/tdlib/td/issues/3202
+ add_definitions(-D_DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR)
endif()
if (CLANG OR GCC)