diff options
author | robot-ya-builder <robot-ya-builder@yandex-team.com> | 2023-04-10 09:15:40 +0300 |
---|---|---|
committer | robot-ya-builder <robot-ya-builder@yandex-team.com> | 2023-04-10 09:15:40 +0300 |
commit | b5da19b8a2b0de7edae408ab328f3ae34acd421d (patch) | |
tree | e3940186623fa4fc9abe1716f65e0b722b221446 | |
parent | 41d195f84607adc2883263000ecb9ba49e907ae9 (diff) | |
download | ydb-b5da19b8a2b0de7edae408ab328f3ae34acd421d.tar.gz |
External build system generator release 26
Update tools: yexport
-rw-r--r-- | cmake/common.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cmake/common.cmake b/cmake/common.cmake index 1f9d67ea9a..00f970a036 100644 --- a/cmake/common.cmake +++ b/cmake/common.cmake @@ -287,3 +287,12 @@ function(set_yunittest_property) set_property(TEST ${YUNITTEST_ARGS_TEST}_${Idx} PROPERTY ${YUNITTEST_ARGS_PROPERTY} ${YUNITTEST_ARGS_UNPARSED_ARGUMENTS}) endforeach() endfunction() + +option(CUSTOM_ALLOCATORS "Enables use of per executable specified allocators. Can be turned off in order to use code instrumentation tooling relying on system allocator (sanitizers, heaptrack, ...)" On) +function(target_allocator Tgt) + if (CUSTOM_ALLOCATORS) + target_link_libraries(${Tgt} PRIVATE ${ARGN}) + else() + target_link_libraries(${Tgt} PRIVATE system_allocator) + endif() +endfunction() |