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,6 +259,8 @@ ELSE()
ENDIF() ENDIF()
ENDIF() ENDIF()
IF(TD_LINUX)
IF(${JEMALLOC_ENABLED}) IF(${JEMALLOC_ENABLED})
MESSAGE(STATUS "JEMALLOC_ENABLED Enabled") MESSAGE(STATUS "JEMALLOC_ENABLED Enabled")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error=attributes") SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error=attributes")
@ -266,3 +268,4 @@ IF(${JEMALLOC_ENABLED})
ELSE() ELSE()
MESSAGE(STATUS "JEMALLOC_ENABLED Disabled") MESSAGE(STATUS "JEMALLOC_ENABLED Disabled")
ENDIF() ENDIF()
ENDIF()