Skip to content
Prev Previous commit
Next Next commit
build: fixed mpack options for Debug build.
Signed-off-by: Marat Abrarov <abrarov@gmail.com>
  • Loading branch information
mabrarov committed Feb 16, 2026
commit bffad4f3a800c2abd418df262a58834d5c783f4d
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,12 @@ endif()

# MPack
add_definitions(-DMPACK_EXTENSIONS=1)
# MPack read / write tracking seems to have issues with nested types,
# so it needs to be disabled explicitly, because otherwise mpack
# read / write tracking is automatically enabled for the Debug build
# (when _DEBUG macro is defined) with some compilers, like MSVC
# (refer to https://learn.microsoft.com/en-us/cpp/c-runtime-library/debug).
add_definitions(-DMPACK_READ_TRACKING=0 -DMPACK_WRITE_TRACKING=0)
add_subdirectory(${FLB_PATH_LIB_MPACK} EXCLUDE_FROM_ALL)

# Miniz (zip)
Expand Down