fix: restore jemalloc

This commit is contained in:
Shengliang Guan 2025-02-20 14:01:51 +08:00
parent 3da2fd05a5
commit 339308c972
1 changed files with 9 additions and 6 deletions

View File

@ -259,10 +259,13 @@ ELSE()
ENDIF()
ENDIF()
IF(${JEMALLOC_ENABLED})
IF(TD_LINUX)
IF(${JEMALLOC_ENABLED})
MESSAGE(STATUS "JEMALLOC_ENABLED Enabled")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error=attributes")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=attributes")
ELSE()
ELSE()
MESSAGE(STATUS "JEMALLOC_ENABLED Disabled")
ENDIF()
ENDIF()