Browse Source

default allocator for 32bit arch: LF -> J

snermolaev 2 years ago
parent
commit
5e9c624054

+ 1 - 1
contrib/libs/llvm12/utils/TableGen/CMakeLists.linux-aarch64.txt

@@ -18,7 +18,7 @@ target_include_directories(llvm-tblgen PRIVATE
 target_link_libraries(llvm-tblgen PUBLIC
   contrib-libs-linux-headers
   contrib-libs-cxxsupp
-  library-cpp-lfalloc
+  cpp-malloc-jemalloc
   contrib-libs-llvm12
   llvm12-lib-Demangle
   llvm12-lib-Support

+ 1 - 1
contrib/tools/protoc/bin/CMakeLists.linux-aarch64.txt

@@ -15,7 +15,7 @@ target_link_libraries(protoc PUBLIC
   contrib-libs-linux-headers
   contrib-libs-cxxsupp
   yutil
-  library-cpp-lfalloc
+  cpp-malloc-jemalloc
   contrib-libs-protoc
 )
 target_link_options(protoc PRIVATE

+ 1 - 1
contrib/tools/protoc/plugins/cpp_styleguide/CMakeLists.linux-aarch64.txt

@@ -15,7 +15,7 @@ target_link_libraries(cpp_styleguide PUBLIC
   contrib-libs-linux-headers
   contrib-libs-cxxsupp
   yutil
-  library-cpp-lfalloc
+  cpp-malloc-jemalloc
   contrib-libs-protoc
 )
 target_link_options(cpp_styleguide PRIVATE

+ 1 - 1
contrib/tools/protoc/plugins/grpc_cpp/CMakeLists.linux-aarch64.txt

@@ -20,7 +20,7 @@ target_link_libraries(grpc_cpp PUBLIC
   contrib-libs-linux-headers
   contrib-libs-cxxsupp
   yutil
-  library-cpp-lfalloc
+  cpp-malloc-jemalloc
   src-compiler-grpc_plugin_support
 )
 target_link_options(grpc_cpp PRIVATE

+ 1 - 1
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

+ 8 - 3
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
+)

+ 1 - 1
tools/archiver/CMakeLists.linux-aarch64.txt

@@ -12,7 +12,7 @@ target_link_libraries(archiver PUBLIC
   contrib-libs-linux-headers
   contrib-libs-cxxsupp
   yutil
-  library-cpp-lfalloc
+  cpp-malloc-jemalloc
   library-cpp-archive
   cpp-digest-md5
   cpp-getopt-small

+ 1 - 1
tools/enum_parser/enum_parser/CMakeLists.linux-aarch64.txt

@@ -12,7 +12,7 @@ target_link_libraries(enum_parser PUBLIC
   contrib-libs-linux-headers
   contrib-libs-cxxsupp
   yutil
-  library-cpp-lfalloc
+  cpp-malloc-jemalloc
   cpp-getopt-small
   tools-enum_parser-parse_enum
 )

+ 1 - 1
tools/rescompiler/bin/CMakeLists.linux-aarch64.txt

@@ -12,7 +12,7 @@ target_link_libraries(rescompiler PUBLIC
   contrib-libs-linux-headers
   contrib-libs-cxxsupp
   yutil
-  library-cpp-lfalloc
+  cpp-malloc-jemalloc
   library-cpp-resource
 )
 target_link_options(rescompiler PRIVATE

+ 1 - 1
ydb/apps/ydb/CMakeLists.linux-aarch64.txt

@@ -19,7 +19,7 @@ target_link_libraries(ydb PUBLIC
   contrib-libs-linux-headers
   contrib-libs-cxxsupp
   yutil
-  library-cpp-lfalloc
+  cpp-malloc-jemalloc
   commands
   library-cpp-resource
 )

Some files were not shown because too many files changed in this diff