diff options
| -rw-r--r-- | xmake.lua | 2 | ||||
| -rw-r--r-- | zen/zen.cpp | 6 | ||||
| -rw-r--r-- | zencore/iobuffer.cpp | 1 |
3 files changed, 7 insertions, 2 deletions
@@ -13,7 +13,6 @@ add_requires( "vcpkg::json11", "vcpkg::lua", "vcpkg::lz4", - "vcpkg::mimalloc", "vcpkg::openssl", "vcpkg::robin-map", "vcpkg::sol2", @@ -25,6 +24,7 @@ add_requires( if not is_arch("arm64") then add_requires( + "vcpkg::mimalloc", "vcpkg::sentry-native" ) end diff --git a/zen/zen.cpp b/zen/zen.cpp index 4cbf75c18..7f547a77a 100644 --- a/zen/zen.cpp +++ b/zen/zen.cpp @@ -28,7 +28,9 @@ #include <gsl/gsl-lite.hpp> -#include <mimalloc-new-delete.h> +#if ZEN_USE_MIMALLOC +# include <mimalloc-new-delete.h> +#endif ////////////////////////////////////////////////////////////////////////// @@ -96,7 +98,9 @@ main(int argc, char** argv) { using namespace zen; +#if ZEN_USE_MIMALLOC mi_version(); +#endif zen::logging::InitializeLogging(); diff --git a/zencore/iobuffer.cpp b/zencore/iobuffer.cpp index b6bbedc40..e4c1ad75a 100644 --- a/zencore/iobuffer.cpp +++ b/zencore/iobuffer.cpp @@ -83,6 +83,7 @@ IoBufferCore::FreeBuffer() } #endif + ZEN_UNUSED(LocalFlags); return Memory::Free(const_cast<void*>(m_DataPtr)); } |