mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-04 22:49:32 +03:00
fix MI_SHOW_ERRORS on msvc
This commit is contained in:
parent
8f5710abcc
commit
9a33f23b5f
2 changed files with 5 additions and 3 deletions
|
@ -116,8 +116,6 @@ endif()
|
||||||
if(MI_SHOW_ERRORS MATCHES "ON")
|
if(MI_SHOW_ERRORS MATCHES "ON")
|
||||||
message(STATUS "Enable printing of error and warning messages by default (MI_SHOW_ERRORS=ON)")
|
message(STATUS "Enable printing of error and warning messages by default (MI_SHOW_ERRORS=ON)")
|
||||||
list(APPEND mi_defines MI_SHOW_ERRORS=1)
|
list(APPEND mi_defines MI_SHOW_ERRORS=1)
|
||||||
else()
|
|
||||||
list(APPEND mi_defines MI_SHOW_ERRORS=0)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(MI_USE_CXX MATCHES "ON")
|
if(MI_USE_CXX MATCHES "ON")
|
||||||
|
|
|
@ -51,7 +51,11 @@ typedef struct mi_option_desc_s {
|
||||||
static mi_option_desc_t options[_mi_option_last] =
|
static mi_option_desc_t options[_mi_option_last] =
|
||||||
{
|
{
|
||||||
// stable options
|
// stable options
|
||||||
{ MI_DEBUG | MI_SHOW_ERRORS, UNINIT, MI_OPTION(show_errors) },
|
#if MI_DEBUG || defined(MI_SHOW_ERRORS)
|
||||||
|
{ 1, UNINIT, MI_OPTION(show_errors) },
|
||||||
|
#else
|
||||||
|
{ 0, UNINIT, MI_OPTION(show_errors) },
|
||||||
|
#endif
|
||||||
{ 0, UNINIT, MI_OPTION(show_stats) },
|
{ 0, UNINIT, MI_OPTION(show_stats) },
|
||||||
{ 0, UNINIT, MI_OPTION(verbose) },
|
{ 0, UNINIT, MI_OPTION(verbose) },
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue