From 62287f95d29afc33c91d67b7c81912e31b7285e4 Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 5 Jan 2026 18:04:17 +0300 Subject: Always disable constexpr mutex constructor just in case. --- CMakeLists.txt | 7 +++---- 1 file 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) -- cgit v1.2.3