diff --git a/CMakeLists.txt b/CMakeLists.txt index 6d412c171..bd6365864 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -93,8 +93,6 @@ if (ENABLE_FATAL_ERROR_HANG) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DFATAL_ERROR_HANG") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_500_MEMORY_LIMIT") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DENABLE_500_MEMORY_LIMIT") - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_LIGHT_BACKTRACE") - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DENABLE_LIGHT_BACKTRACE") endif() if(OB_USE_ASAN) diff --git a/deps/oblib/src/lib/alloc/alloc_struct.cpp b/deps/oblib/src/lib/alloc/alloc_struct.cpp index 27b33ad1d..93bd58db2 100644 --- a/deps/oblib/src/lib/alloc/alloc_struct.cpp +++ b/deps/oblib/src/lib/alloc/alloc_struct.cpp @@ -137,7 +137,7 @@ bool is_ob_mem_mgr_path() void enable_memleak_light_backtrace(const bool enable) { -#if defined(ENABLE_LIGHT_BACKTRACE) +#if defined(__x86_64__) || defined(__aarch64__) g_memleak_light_backtrace_enabled = enable; #else UNUSED(enable);