New Logger Design & Better Logger Macros

This commit is contained in:
2026-01-17 02:38:12 +05:30
parent 71a92b8510
commit 38e4e216c8
6 changed files with 66 additions and 11 deletions

View File

@ -22,4 +22,15 @@ if(ALREADY_PATCHED EQUAL -1)
file(WRITE "${TARGET_FILE}" "${FILE_CONTENT}")
else()
message(STATUS "mimalloc source is already patched. Skipping.")
endif()
endif()
# Patch mimalloc complaing about false positive alignment issues in libc loader
file(READ "${SOURCE_DIR}/CMakeLists.txt" MI_CMAKE_CONTENT)
string(REPLACE
"set(mi_debug_default ON)"
"set(mi_debug_default OFF)"
MI_CMAKE_CONTENT
"${MI_CMAKE_CONTENT}"
)
file(WRITE "${SOURCE_DIR}/CMakeLists.txt" "${MI_CMAKE_CONTENT}")
message(STATUS "Patched mimalloc: Forced MI_DEBUG default to OFF to silence alignment warnings.")