diff options
author | dcherednik <dcherednik@ydb.tech> | 2022-10-26 16:40:35 +0300 |
---|---|---|
committer | dcherednik <dcherednik@ydb.tech> | 2022-10-26 16:40:35 +0300 |
commit | b981cca279190176740c3bf5c5b4fd03be51b599 (patch) | |
tree | f5ec6210fdce0e976cbbe4dc8ae78bb6509adf49 /library/cpp/malloc | |
parent | 6dc0de995652f7eeecdbdb88dc98b00bb0653a2f (diff) | |
download | ydb-b981cca279190176740c3bf5c5b4fd03be51b599.tar.gz |
Enable linux-arm platform.
Diffstat (limited to 'library/cpp/malloc')
-rw-r--r-- | library/cpp/malloc/CMakeLists.linux-aarch64.txt | 11 | ||||
-rw-r--r-- | library/cpp/malloc/CMakeLists.txt | 4 | ||||
-rw-r--r-- | library/cpp/malloc/tcmalloc/CMakeLists.linux-aarch64.txt | 18 | ||||
-rw-r--r-- | library/cpp/malloc/tcmalloc/CMakeLists.txt | 4 |
4 files changed, 35 insertions, 2 deletions
diff --git a/library/cpp/malloc/CMakeLists.linux-aarch64.txt b/library/cpp/malloc/CMakeLists.linux-aarch64.txt new file mode 100644 index 00000000000..b68a3a50a19 --- /dev/null +++ b/library/cpp/malloc/CMakeLists.linux-aarch64.txt @@ -0,0 +1,11 @@ + +# This file was gererated 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_subdirectory(api) +add_subdirectory(jemalloc) +add_subdirectory(tcmalloc) diff --git a/library/cpp/malloc/CMakeLists.txt b/library/cpp/malloc/CMakeLists.txt index 79468a5d8d0..3e0811fb22e 100644 --- a/library/cpp/malloc/CMakeLists.txt +++ b/library/cpp/malloc/CMakeLists.txt @@ -6,7 +6,9 @@ # original buildsystem will not be accepted. -if (APPLE) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (APPLE) include(CMakeLists.darwin.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) diff --git a/library/cpp/malloc/tcmalloc/CMakeLists.linux-aarch64.txt b/library/cpp/malloc/tcmalloc/CMakeLists.linux-aarch64.txt new file mode 100644 index 00000000000..d46ca5e5fa5 --- /dev/null +++ b/library/cpp/malloc/tcmalloc/CMakeLists.linux-aarch64.txt @@ -0,0 +1,18 @@ + +# This file was gererated 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-tcmalloc) +target_link_libraries(cpp-malloc-tcmalloc PUBLIC + contrib-libs-cxxsupp + cpp-malloc-api + libs-tcmalloc-malloc_extension +) +target_sources(cpp-malloc-tcmalloc PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/malloc/tcmalloc/malloc-info.cpp +) diff --git a/library/cpp/malloc/tcmalloc/CMakeLists.txt b/library/cpp/malloc/tcmalloc/CMakeLists.txt index 3c0f983fa59..fb9f9efce2b 100644 --- a/library/cpp/malloc/tcmalloc/CMakeLists.txt +++ b/library/cpp/malloc/tcmalloc/CMakeLists.txt @@ -6,6 +6,8 @@ # original buildsystem will not be accepted. -if (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) +if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT ANDROID) + include(CMakeLists.linux-aarch64.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID) include(CMakeLists.linux.txt) endif() |