New Logger Design & Better Logger Macros
This commit is contained in:
@ -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.")
|
||||
Reference in New Issue
Block a user