diff options
author | Monty <monty@mariadb.org> | 2020-08-17 18:56:47 +0300 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2021-05-19 22:27:27 +0200 |
commit | e42130e9cdf6e7282403dbcf74968cf43facb8e0 (patch) | |
tree | 03cef2d9027824ec17bba9cc6a913e3f17c76166 /CMakeLists.txt | |
parent | a93c514595ffa0392c179dc7e289661e02cd342c (diff) | |
download | mariadb-git-e42130e9cdf6e7282403dbcf74968cf43facb8e0.tar.gz |
Fixes that enables my_new.cc (new wrapper using my_malloc)
This is not enabled by default, as there are leaks in the
server that needs to be fixed first. One can compile
with -DUSE_MYSYS_NEW to find the memory leaks from
'new'. More comments can be found in mysys/my_new.cc
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c1cb61ca656..0ceb9986693 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -362,7 +362,8 @@ ENDIF() # Run platform tests INCLUDE(configure.cmake) -# force -DUSE_MYSYS_NEW unless already done by HAVE_CXX_NEW +# Use mysys/my_new.cc if '#include <new>' doesn't work. +# One can also specify -DUSE_MYSYS_NEW explicitly, see mysys/my_new.cc IF(NOT HAVE_CXX_NEW) ADD_DEFINITIONS(-DUSE_MYSYS_NEW) ENDIF() |