mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-17 10:25:21 +02:00
Call malloc_trim() regularly to improve deallocation behavior (#14707)
This commit is contained in:
@@ -351,6 +351,12 @@ endif()
|
||||
include(CheckSymbolExists)
|
||||
check_symbol_exists(strlcpy "string.h" HAVE_STRLCPY)
|
||||
|
||||
if(UNIX)
|
||||
check_symbol_exists(malloc_trim "malloc.h" HAVE_MALLOC_TRIM)
|
||||
else()
|
||||
set(HAVE_MALLOC_TRIM FALSE)
|
||||
endif()
|
||||
|
||||
check_include_files(endian.h HAVE_ENDIAN_H)
|
||||
|
||||
configure_file(
|
||||
|
Reference in New Issue
Block a user