diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2023-02-20 13:44:20 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2023-02-20 13:44:20 +0300 |
commit | ebbaae7d3565a888c08e2ad0313f930a43018893 (patch) | |
tree | 6385e4f2f2fe2f7999824286940ee2723da953ba /library/cpp/malloc | |
parent | fd76fd1f4ba82dc46fd17a0dc4c9093189aba879 (diff) | |
download | ydb-ebbaae7d3565a888c08e2ad0313f930a43018893.tar.gz |
Intermediate changes
Diffstat (limited to 'library/cpp/malloc')
-rw-r--r-- | library/cpp/malloc/CMakeLists.darwin.txt | 1 | ||||
-rw-r--r-- | library/cpp/malloc/system/CMakeLists.darwin.txt | 17 | ||||
-rw-r--r-- | library/cpp/malloc/system/CMakeLists.txt | 11 | ||||
-rw-r--r-- | library/cpp/malloc/system/malloc-info.cpp | 9 |
4 files changed, 38 insertions, 0 deletions
diff --git a/library/cpp/malloc/CMakeLists.darwin.txt b/library/cpp/malloc/CMakeLists.darwin.txt index a892a4cca7..5d8a4de4f7 100644 --- a/library/cpp/malloc/CMakeLists.darwin.txt +++ b/library/cpp/malloc/CMakeLists.darwin.txt @@ -8,3 +8,4 @@ add_subdirectory(api) add_subdirectory(jemalloc) +add_subdirectory(system) diff --git a/library/cpp/malloc/system/CMakeLists.darwin.txt b/library/cpp/malloc/system/CMakeLists.darwin.txt new file mode 100644 index 0000000000..72c039454c --- /dev/null +++ b/library/cpp/malloc/system/CMakeLists.darwin.txt @@ -0,0 +1,17 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + + +add_library(cpp-malloc-system) +target_link_libraries(cpp-malloc-system PUBLIC + contrib-libs-cxxsupp + cpp-malloc-api +) +target_sources(cpp-malloc-system PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/malloc/system/malloc-info.cpp +) diff --git a/library/cpp/malloc/system/CMakeLists.txt b/library/cpp/malloc/system/CMakeLists.txt new file mode 100644 index 0000000000..270d5d94da --- /dev/null +++ b/library/cpp/malloc/system/CMakeLists.txt @@ -0,0 +1,11 @@ + +# This file was generated by the build system used internally in the Yandex monorepo. +# Only simple modifications are allowed (adding source-files to targets, adding simple properties +# like target_include_directories). These modifications will be ported to original +# ya.make files by maintainers. Any complex modifications which can't be ported back to the +# original buildsystem will not be accepted. + + +if (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") + include(CMakeLists.darwin.txt) +endif() diff --git a/library/cpp/malloc/system/malloc-info.cpp b/library/cpp/malloc/system/malloc-info.cpp new file mode 100644 index 0000000000..ab6742e203 --- /dev/null +++ b/library/cpp/malloc/system/malloc-info.cpp @@ -0,0 +1,9 @@ +#include <library/cpp/malloc/api/malloc.h> + +using namespace NMalloc; + +TMallocInfo NMalloc::MallocInfo() { + TMallocInfo r; + r.Name = "system"; + return r; +} |