aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2023-02-20 13:44:20 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2023-02-20 13:44:20 +0300
commitebbaae7d3565a888c08e2ad0313f930a43018893 (patch)
tree6385e4f2f2fe2f7999824286940ee2723da953ba /library
parentfd76fd1f4ba82dc46fd17a0dc4c9093189aba879 (diff)
downloadydb-ebbaae7d3565a888c08e2ad0313f930a43018893.tar.gz
Intermediate changes
Diffstat (limited to 'library')
-rw-r--r--library/cpp/digest/old_crc/gencrc/CMakeLists.darwin.txt1
-rw-r--r--library/cpp/malloc/CMakeLists.darwin.txt1
-rw-r--r--library/cpp/malloc/system/CMakeLists.darwin.txt17
-rw-r--r--library/cpp/malloc/system/CMakeLists.txt11
-rw-r--r--library/cpp/malloc/system/malloc-info.cpp9
5 files changed, 39 insertions, 0 deletions
diff --git a/library/cpp/digest/old_crc/gencrc/CMakeLists.darwin.txt b/library/cpp/digest/old_crc/gencrc/CMakeLists.darwin.txt
index af7ab92d22..8449364983 100644
--- a/library/cpp/digest/old_crc/gencrc/CMakeLists.darwin.txt
+++ b/library/cpp/digest/old_crc/gencrc/CMakeLists.darwin.txt
@@ -11,6 +11,7 @@ add_executable(gencrc)
target_link_libraries(gencrc PUBLIC
contrib-libs-cxxsupp
yutil
+ cpp-malloc-system
library-cpp-cpuid_check
)
target_link_options(gencrc PRIVATE
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;
+}