aboutsummaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorsnermolaev <snermolaev@yandex-team.com>2023-03-13 05:33:19 +0300
committersnermolaev <snermolaev@yandex-team.com>2023-03-13 05:33:19 +0300
commit5e9c624054f29ae9d918b4a3b6fb9d68f4ce2113 (patch)
treec5cc2ef854e24a9b2e87eab269d593f9d18cf802 /library
parent0abce4801507e87f95e23263f0bd91c5d69d3e02 (diff)
downloadydb-5e9c624054f29ae9d918b4a3b6fb9d68f4ce2113.tar.gz
default allocator for 32bit arch: LF -> J
Diffstat (limited to 'library')
-rw-r--r--library/cpp/digest/old_crc/gencrc/CMakeLists.linux-aarch64.txt2
-rw-r--r--library/cpp/lfalloc/CMakeLists.linux-aarch64.txt11
2 files changed, 9 insertions, 4 deletions
diff --git a/library/cpp/digest/old_crc/gencrc/CMakeLists.linux-aarch64.txt b/library/cpp/digest/old_crc/gencrc/CMakeLists.linux-aarch64.txt
index 652815b64d6..38e5afdb8ad 100644
--- a/library/cpp/digest/old_crc/gencrc/CMakeLists.linux-aarch64.txt
+++ b/library/cpp/digest/old_crc/gencrc/CMakeLists.linux-aarch64.txt
@@ -12,7 +12,7 @@ target_link_libraries(gencrc PUBLIC
contrib-libs-linux-headers
contrib-libs-cxxsupp
yutil
- library-cpp-lfalloc
+ cpp-malloc-jemalloc
)
target_link_options(gencrc PRIVATE
-ldl
diff --git a/library/cpp/lfalloc/CMakeLists.linux-aarch64.txt b/library/cpp/lfalloc/CMakeLists.linux-aarch64.txt
index 0d5a6f80f20..de6f97ec6aa 100644
--- a/library/cpp/lfalloc/CMakeLists.linux-aarch64.txt
+++ b/library/cpp/lfalloc/CMakeLists.linux-aarch64.txt
@@ -9,10 +9,15 @@
add_subdirectory(alloc_profiler)
add_subdirectory(dbg_info)
-add_library(library-cpp-lfalloc INTERFACE)
-target_link_libraries(library-cpp-lfalloc INTERFACE
+add_library(library-cpp-lfalloc)
+target_compile_options(library-cpp-lfalloc PRIVATE
+ $<IF:$<CXX_COMPILER_ID:MSVC>,,-Wno-everything>
+)
+target_link_libraries(library-cpp-lfalloc PUBLIC
contrib-libs-linux-headers
contrib-libs-cxxsupp
- cpp-malloc-jemalloc
cpp-malloc-api
)
+target_sources(library-cpp-lfalloc PRIVATE
+ ${CMAKE_SOURCE_DIR}/library/cpp/lfalloc/lf_allocX64.cpp
+)