mirror of
https://github.com/ton-blockchain/ton
synced 2025-02-12 11:12:16 +00:00
e985ac0358
* Add --fast-state-serializer and tools for jemalloc * Disable fast state serializer by default unless RAM is >= 90GB * Print jemalloc stats once a minute * Dump jemalloc profile on request * Respond to AdnlMessageCreateChannel with Nop --------- Co-authored-by: SpyCheese <mikle98@yandex.ru>
22 lines
702 B
CMake
22 lines
702 B
CMake
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
|
|
|
|
if (NOT OPENSSL_FOUND)
|
|
find_package(OpenSSL REQUIRED)
|
|
endif()
|
|
|
|
|
|
set(VALIDATOR_ENGINE_SOURCE
|
|
validator-engine.hpp
|
|
validator-engine.cpp
|
|
)
|
|
|
|
add_executable(validator-engine ${VALIDATOR_ENGINE_SOURCE})
|
|
target_link_libraries(validator-engine overlay tdutils tdactor adnl tl_api dht
|
|
rldp rldp2 catchain validatorsession full-node validator ton_validator validator
|
|
fift-lib memprof git ${JEMALLOC_LIBRARIES})
|
|
if (JEMALLOC_FOUND)
|
|
target_include_directories(validator-engine PRIVATE ${JEMALLOC_INCLUDE_DIR})
|
|
target_compile_definitions(validator-engine PRIVATE -DTON_USE_JEMALLOC=1)
|
|
endif()
|
|
|
|
install(TARGETS validator-engine RUNTIME DESTINATION bin)
|