This is an automated email from the ASF dual-hosted git repository.

wasphin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brpc.git


The following commit(s) were added to refs/heads/master by this push:
     new b9cacbae Let CMake manage NDEBUG by build configuration (#3553)
b9cacbae is described below

commit b9cacbae1a92618964faca178f1828cfbd604c22
Author: hesphoros <[email protected]>
AuthorDate: Sat Sep 19 13:30:13 2026 +0800

    Let CMake manage NDEBUG by build configuration (#3553)
---
 CMakeLists.txt | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2e815bfa..f9e1aa8f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -21,7 +21,6 @@ project(brpc C CXX)
 option(WITH_GLOG "With glog" OFF)
 option(WITH_MESALINK "With MesaLink" OFF)
 option(WITH_BORINGSSL "With BoringSSL" OFF)
-option(DEBUG "Print debug logs" OFF)
 option(WITH_DEBUG_SYMBOLS "With debug symbols" ON)
 option(WITH_THRIFT "With thrift framed protocol supported" OFF)
 option(WITH_BTHREAD_TRACER "With bthread tracer supported" OFF)
@@ -195,9 +194,6 @@ list(APPEND BRPC_COMMON_DEFINITIONS
     __STRICT_ANSI__
 )
 
-if(NOT DEBUG)
-    list(APPEND BRPC_COMMON_DEFINITIONS NDEBUG)
-endif()
 if(WITH_ASAN)
     list(APPEND BRPC_COMMON_COMPILE_OPTIONS -fsanitize=address)
     list(APPEND BRPC_COMMON_LINK_OPTIONS -fsanitize=address)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to