mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-02 17:52:19 +00:00
Add option for enabling malloc_trim
This commit is contained in:
1 file changed
+5
-1
+5
-1
@@ -7,11 +7,15 @@ ENDIF()
|
||||
SET(CMAKE_CXX_STANDARD 17)
|
||||
ADD_DEFINITIONS(-Wall -Wextra -Wno-unused-parameter -Wno-unused-result)
|
||||
|
||||
OPTION(USING_STD_REGEX "Use std::regex from C++ library instead of PCRECPP" OFF)
|
||||
OPTION(USING_STD_REGEX "Use std::regex from C++ library instead of PCRECPP." OFF)
|
||||
OPTION(USING_MALLOC_TRIM "Call malloc_trim after processing request to lower memory usage (Your system must support malloc_trim)." OFF)
|
||||
|
||||
IF(MACOS)
|
||||
ADD_DEFINITIONS(-D_MACOS)
|
||||
ENDIF()
|
||||
IF(USING_MALLOC_TRIM)
|
||||
ADD_DEFINITIONS(-DMALLOC_TRIM)
|
||||
ENDIF()
|
||||
|
||||
ADD_EXECUTABLE(subconverter
|
||||
src/logger.cpp
|
||||
|
||||
Reference in new issue
Block a user