From c95d77a3a6889bcf4e97b7ae46ece097f3e59766 Mon Sep 17 00:00:00 2001 From: Cai Yudong Date: Tue, 8 Sep 2020 09:59:11 +0800 Subject: [PATCH] add build option -rdynamic in CMakeList.txt (#3632) Signed-off-by: yudong.cai --- CHANGELOG.md | 3 ++- core/CMakeLists.txt | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 888dbf64f6..675cc8e71a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,8 +36,8 @@ Please mark all changes in change log and use the issue from GitHub - \#3446 ListIDInSegment get wrong result when delete more than one ids - \#3448 RHNSWFlatTest failed - \#3453 Fix server crashed during stability test -- \#3490 Fix ut DBTest.DeleteEntitiesTest assert fail - \#3482 Server crashed during adding entities +- \#3490 Fix ut DBTest.DeleteEntitiesTest assert fail - \#3511 SearchTask::nq() should not return 0 - \#3514 Search failed with regex tag name - \#3533 Scheduler/Selector needs to judge the index type @@ -68,6 +68,7 @@ Please mark all changes in change log and use the issue from GitHub - \#3220 Enable -Werror to improve code quality - \#3449 Upgrade master version to v0.11.0 - \#3465 Optimize gc event executor +- \#3631 Add build option `-rdynamic` in CMakeList.txt ## Task diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index 18f2c6c9c0..eec522f2dd 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -96,12 +96,14 @@ else () message( FATAL_ERROR "Unknown CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}" ) endif () +# option "-rdynamic" is to print out detailed backtrace info for debug-ease append_flags( CMAKE_CXX_FLAGS FLAGS "-fPIC" "-DELPP_THREAD_SAFE" "-fopenmp" "-Werror" + "-rdynamic" ) # **************************** Coding style check tools ****************************