diff options
author | Daniil Cherednik <dan.cherednik@gmail.com> | 2022-09-21 20:17:38 +0300 |
---|---|---|
committer | Daniil Cherednik <dan.cherednik@gmail.com> | 2022-09-21 20:17:38 +0300 |
commit | e6c9b17192c56494adba359d5e132c431b241191 (patch) | |
tree | 6f2449871a118a0e8919ce842b1174e06cb470ef /library/cpp/lfalloc | |
parent | 285021ab1aac39e84b269d9bacd4deee69cf63fc (diff) | |
download | ydb-22.4.21.tar.gz |
Ydb stable 22-4-2122.4.21
x-stable-origin-commit: e89099581237299a132feafb5b58af59ebd0468a
Diffstat (limited to 'library/cpp/lfalloc')
-rw-r--r-- | library/cpp/lfalloc/CMakeLists.darwin.txt | 23 | ||||
-rw-r--r-- | library/cpp/lfalloc/CMakeLists.linux.txt | 22 | ||||
-rw-r--r-- | library/cpp/lfalloc/CMakeLists.txt | 17 |
3 files changed, 50 insertions, 12 deletions
diff --git a/library/cpp/lfalloc/CMakeLists.darwin.txt b/library/cpp/lfalloc/CMakeLists.darwin.txt new file mode 100644 index 00000000000..3c17261bd6f --- /dev/null +++ b/library/cpp/lfalloc/CMakeLists.darwin.txt @@ -0,0 +1,23 @@ + +# 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(alloc_profiler) +add_subdirectory(dbg_info) +add_subdirectory(yt) + +add_library(library-cpp-lfalloc) +target_compile_options(library-cpp-lfalloc PRIVATE + -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.linux.txt b/library/cpp/lfalloc/CMakeLists.linux.txt new file mode 100644 index 00000000000..d3171b42df3 --- /dev/null +++ b/library/cpp/lfalloc/CMakeLists.linux.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_subdirectory(alloc_profiler) +add_subdirectory(dbg_info) + +add_library(library-cpp-lfalloc) +target_compile_options(library-cpp-lfalloc PRIVATE + -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 9564ed7af02..dbfe6fa2c47 100644 --- a/library/cpp/lfalloc/CMakeLists.txt +++ b/library/cpp/lfalloc/CMakeLists.txt @@ -6,15 +6,8 @@ # original buildsystem will not be accepted. - -add_library(library-cpp-lfalloc) -target_compile_options(library-cpp-lfalloc PRIVATE - -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 -) +if (APPLE) + include(CMakeLists.darwin.txt) +elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE) + include(CMakeLists.linux.txt) +endif() |