diff options
Diffstat (limited to 'library/cpp/lfalloc')
| -rw-r--r-- | library/cpp/lfalloc/CMakeLists.darwin-arm64.txt | 23 | ||||
| -rw-r--r-- | library/cpp/lfalloc/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | library/cpp/lfalloc/alloc_profiler/CMakeLists.darwin-arm64.txt | 21 | ||||
| -rw-r--r-- | library/cpp/lfalloc/alloc_profiler/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | library/cpp/lfalloc/dbg_info/CMakeLists.darwin-arm64.txt | 18 | ||||
| -rw-r--r-- | library/cpp/lfalloc/dbg_info/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | library/cpp/lfalloc/yt/CMakeLists.darwin-arm64.txt | 15 | ||||
| -rw-r--r-- | library/cpp/lfalloc/yt/CMakeLists.txt | 4 |
8 files changed, 86 insertions, 1 deletions
diff --git a/library/cpp/lfalloc/CMakeLists.darwin-arm64.txt b/library/cpp/lfalloc/CMakeLists.darwin-arm64.txt new file mode 100644 index 00000000000..c5ee6488443 --- /dev/null +++ b/library/cpp/lfalloc/CMakeLists.darwin-arm64.txt @@ -0,0 +1,23 @@ + +# 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_subdirectory(alloc_profiler) +add_subdirectory(dbg_info) +add_subdirectory(yt) + +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-cxxsupp + cpp-malloc-api +) +target_sources(library-cpp-lfalloc PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/lfalloc/lf_allocX64.cpp +) diff --git a/library/cpp/lfalloc/CMakeLists.txt b/library/cpp/lfalloc/CMakeLists.txt index f8b31df0c11..2dce3a77fe3 100644 --- a/library/cpp/lfalloc/CMakeLists.txt +++ b/library/cpp/lfalloc/CMakeLists.txt @@ -10,6 +10,8 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "aarc include(CMakeLists.linux-aarch64.txt) elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") include(CMakeLists.darwin-x86_64.txt) +elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64") + include(CMakeLists.darwin-arm64.txt) elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA) include(CMakeLists.windows-x86_64.txt) elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND NOT HAVE_CUDA) diff --git a/library/cpp/lfalloc/alloc_profiler/CMakeLists.darwin-arm64.txt b/library/cpp/lfalloc/alloc_profiler/CMakeLists.darwin-arm64.txt new file mode 100644 index 00000000000..b94d19ad32d --- /dev/null +++ b/library/cpp/lfalloc/alloc_profiler/CMakeLists.darwin-arm64.txt @@ -0,0 +1,21 @@ + +# 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-lfalloc-alloc_profiler) +target_link_libraries(cpp-lfalloc-alloc_profiler PUBLIC + contrib-libs-cxxsupp + yutil + cpp-lfalloc-dbg_info + library-cpp-cache + cpp-deprecated-atomic +) +target_sources(cpp-lfalloc-alloc_profiler PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/lfalloc/alloc_profiler/profiler.cpp + ${CMAKE_SOURCE_DIR}/library/cpp/lfalloc/alloc_profiler/stackcollect.cpp +) diff --git a/library/cpp/lfalloc/alloc_profiler/CMakeLists.txt b/library/cpp/lfalloc/alloc_profiler/CMakeLists.txt index f8b31df0c11..2dce3a77fe3 100644 --- a/library/cpp/lfalloc/alloc_profiler/CMakeLists.txt +++ b/library/cpp/lfalloc/alloc_profiler/CMakeLists.txt @@ -10,6 +10,8 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "aarc include(CMakeLists.linux-aarch64.txt) elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") include(CMakeLists.darwin-x86_64.txt) +elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64") + include(CMakeLists.darwin-arm64.txt) elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA) include(CMakeLists.windows-x86_64.txt) elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND NOT HAVE_CUDA) diff --git a/library/cpp/lfalloc/dbg_info/CMakeLists.darwin-arm64.txt b/library/cpp/lfalloc/dbg_info/CMakeLists.darwin-arm64.txt new file mode 100644 index 00000000000..ec8b8ba23b9 --- /dev/null +++ b/library/cpp/lfalloc/dbg_info/CMakeLists.darwin-arm64.txt @@ -0,0 +1,18 @@ + +# 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-lfalloc-dbg_info) +target_link_libraries(cpp-lfalloc-dbg_info PUBLIC + contrib-libs-cxxsupp + yutil + cpp-malloc-api +) +target_sources(cpp-lfalloc-dbg_info PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/lfalloc/dbg_info/dbg_info.cpp +) diff --git a/library/cpp/lfalloc/dbg_info/CMakeLists.txt b/library/cpp/lfalloc/dbg_info/CMakeLists.txt index f8b31df0c11..2dce3a77fe3 100644 --- a/library/cpp/lfalloc/dbg_info/CMakeLists.txt +++ b/library/cpp/lfalloc/dbg_info/CMakeLists.txt @@ -10,6 +10,8 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "aarc include(CMakeLists.linux-aarch64.txt) elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") include(CMakeLists.darwin-x86_64.txt) +elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64") + include(CMakeLists.darwin-arm64.txt) elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA) include(CMakeLists.windows-x86_64.txt) elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND NOT HAVE_CUDA) diff --git a/library/cpp/lfalloc/yt/CMakeLists.darwin-arm64.txt b/library/cpp/lfalloc/yt/CMakeLists.darwin-arm64.txt new file mode 100644 index 00000000000..60cb9c39445 --- /dev/null +++ b/library/cpp/lfalloc/yt/CMakeLists.darwin-arm64.txt @@ -0,0 +1,15 @@ + +# 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-lfalloc-yt INTERFACE) +target_link_libraries(cpp-lfalloc-yt INTERFACE + contrib-libs-cxxsupp + contrib-libs-jemalloc + cpp-malloc-api +) diff --git a/library/cpp/lfalloc/yt/CMakeLists.txt b/library/cpp/lfalloc/yt/CMakeLists.txt index e655de6e6ac..67233d6245a 100644 --- a/library/cpp/lfalloc/yt/CMakeLists.txt +++ b/library/cpp/lfalloc/yt/CMakeLists.txt @@ -6,7 +6,9 @@ # original buildsystem will not be accepted. -if (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA) +if (CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64") + include(CMakeLists.darwin-arm64.txt) +elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA) include(CMakeLists.windows-x86_64.txt) elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") include(CMakeLists.darwin-x86_64.txt) |
