aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/balloc/lib
diff options
context:
space:
mode:
authordcherednik <dcherednik@ydb.tech>2022-10-26 16:40:35 +0300
committerdcherednik <dcherednik@ydb.tech>2022-10-26 16:40:35 +0300
commitb981cca279190176740c3bf5c5b4fd03be51b599 (patch)
treef5ec6210fdce0e976cbbe4dc8ae78bb6509adf49 /library/cpp/balloc/lib
parent6dc0de995652f7eeecdbdb88dc98b00bb0653a2f (diff)
downloadydb-b981cca279190176740c3bf5c5b4fd03be51b599.tar.gz
Enable linux-arm platform.
Diffstat (limited to 'library/cpp/balloc/lib')
-rw-r--r--library/cpp/balloc/lib/CMakeLists.linux-aarch64.txt22
-rw-r--r--library/cpp/balloc/lib/CMakeLists.txt4
2 files changed, 25 insertions, 1 deletions
diff --git a/library/cpp/balloc/lib/CMakeLists.linux-aarch64.txt b/library/cpp/balloc/lib/CMakeLists.linux-aarch64.txt
new file mode 100644
index 00000000000..7cd6c1e33b7
--- /dev/null
+++ b/library/cpp/balloc/lib/CMakeLists.linux-aarch64.txt
@@ -0,0 +1,22 @@
+
+# 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-balloc-lib)
+target_compile_options(cpp-balloc-lib PRIVATE
+ -Wno-everything
+)
+target_link_libraries(cpp-balloc-lib PUBLIC
+ contrib-libs-cxxsupp
+ contrib-libs-linuxvdso
+ cpp-balloc-setup
+ cpp-malloc-api
+)
+target_sources(cpp-balloc-lib PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/balloc/lib/alloc_stats.cpp
+)
diff --git a/library/cpp/balloc/lib/CMakeLists.txt b/library/cpp/balloc/lib/CMakeLists.txt
index 79468a5d8d0..3e0811fb22e 100644
--- a/library/cpp/balloc/lib/CMakeLists.txt
+++ b/library/cpp/balloc/lib/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)