enable traces on apple

This commit is contained in:
Daan 2021-12-10 12:08:41 -08:00
parent 65b2cebcef
commit b6e2b6e975
3 changed files with 7 additions and 12 deletions

View file

@ -125,14 +125,9 @@ if(MI_DEBUG_FULL)
endif()
if(MI_DEBUG_TRACE)
if (APPLE)
message(WARNING "Cannot enable MI_DEBUG_TRACE on Apple")
set(MI_DEBUG_TRACE OFF)
else()
message(STATUS "Enable allocation trace in each heap block (MI_DEBUG_TRACE=ON)")
list(APPEND mi_defines MI_DEBUG_TRACE=1)
set(CMAKE_ENABLE_EXPORTS TRUE)
endif()
message(STATUS "Enable allocation trace in each heap block (MI_DEBUG_TRACE=ON)")
list(APPEND mi_defines MI_DEBUG_TRACE=1)
set(CMAKE_ENABLE_EXPORTS TRUE)
endif()
if(MI_PADDING_EXTRA)