diff options
author | robot-piglet <[email protected]> | 2023-03-09 12:42:44 +0300 |
---|---|---|
committer | robot-piglet <[email protected]> | 2023-03-09 12:42:44 +0300 |
commit | 6324d075a5e80b6943b5de6b465b775050fe83df (patch) | |
tree | e02ce32e988042438f64df770a528164ac572879 /library/cpp/lfalloc | |
parent | 039e25e1597bec288de44e5061c1b84e195add08 (diff) |
Intermediate changes
Diffstat (limited to 'library/cpp/lfalloc')
-rw-r--r-- | library/cpp/lfalloc/CMakeLists.txt | 2 | ||||
-rw-r--r-- | library/cpp/lfalloc/CMakeLists.windows-x86_64.txt | 23 | ||||
-rw-r--r-- | library/cpp/lfalloc/alloc_profiler/CMakeLists.txt | 2 | ||||
-rw-r--r-- | library/cpp/lfalloc/alloc_profiler/CMakeLists.windows-x86_64.txt | 21 | ||||
-rw-r--r-- | library/cpp/lfalloc/dbg_info/CMakeLists.txt | 2 | ||||
-rw-r--r-- | library/cpp/lfalloc/dbg_info/CMakeLists.windows-x86_64.txt | 18 | ||||
-rw-r--r-- | library/cpp/lfalloc/yt/CMakeLists.txt | 4 | ||||
-rw-r--r-- | library/cpp/lfalloc/yt/CMakeLists.windows-x86_64.txt | 21 |
8 files changed, 92 insertions, 1 deletions
diff --git a/library/cpp/lfalloc/CMakeLists.txt b/library/cpp/lfalloc/CMakeLists.txt index 8f8c04afe54..d90657116d0 100644 --- a/library/cpp/lfalloc/CMakeLists.txt +++ b/library/cpp/lfalloc/CMakeLists.txt @@ -10,6 +10,8 @@ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT AND include(CMakeLists.linux-aarch64.txt) elseif (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") include(CMakeLists.darwin-x86_64.txt) +elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA) + include(CMakeLists.windows-x86_64.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID AND NOT HAVE_CUDA) include(CMakeLists.linux-x86_64.txt) endif() diff --git a/library/cpp/lfalloc/CMakeLists.windows-x86_64.txt b/library/cpp/lfalloc/CMakeLists.windows-x86_64.txt new file mode 100644 index 00000000000..c5ee6488443 --- /dev/null +++ b/library/cpp/lfalloc/CMakeLists.windows-x86_64.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/alloc_profiler/CMakeLists.txt b/library/cpp/lfalloc/alloc_profiler/CMakeLists.txt index 8f8c04afe54..d90657116d0 100644 --- a/library/cpp/lfalloc/alloc_profiler/CMakeLists.txt +++ b/library/cpp/lfalloc/alloc_profiler/CMakeLists.txt @@ -10,6 +10,8 @@ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT AND include(CMakeLists.linux-aarch64.txt) elseif (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") include(CMakeLists.darwin-x86_64.txt) +elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA) + include(CMakeLists.windows-x86_64.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID AND NOT HAVE_CUDA) include(CMakeLists.linux-x86_64.txt) endif() diff --git a/library/cpp/lfalloc/alloc_profiler/CMakeLists.windows-x86_64.txt b/library/cpp/lfalloc/alloc_profiler/CMakeLists.windows-x86_64.txt new file mode 100644 index 00000000000..b94d19ad32d --- /dev/null +++ b/library/cpp/lfalloc/alloc_profiler/CMakeLists.windows-x86_64.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/dbg_info/CMakeLists.txt b/library/cpp/lfalloc/dbg_info/CMakeLists.txt index 8f8c04afe54..d90657116d0 100644 --- a/library/cpp/lfalloc/dbg_info/CMakeLists.txt +++ b/library/cpp/lfalloc/dbg_info/CMakeLists.txt @@ -10,6 +10,8 @@ if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND UNIX AND NOT APPLE AND NOT AND include(CMakeLists.linux-aarch64.txt) elseif (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") include(CMakeLists.darwin-x86_64.txt) +elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA) + include(CMakeLists.windows-x86_64.txt) elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND UNIX AND NOT APPLE AND NOT ANDROID AND NOT HAVE_CUDA) include(CMakeLists.linux-x86_64.txt) endif() diff --git a/library/cpp/lfalloc/dbg_info/CMakeLists.windows-x86_64.txt b/library/cpp/lfalloc/dbg_info/CMakeLists.windows-x86_64.txt new file mode 100644 index 00000000000..ec8b8ba23b9 --- /dev/null +++ b/library/cpp/lfalloc/dbg_info/CMakeLists.windows-x86_64.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/yt/CMakeLists.txt b/library/cpp/lfalloc/yt/CMakeLists.txt index 5bedd04e092..86c4d15dc39 100644 --- a/library/cpp/lfalloc/yt/CMakeLists.txt +++ b/library/cpp/lfalloc/yt/CMakeLists.txt @@ -6,6 +6,8 @@ # original buildsystem will not be accepted. -if (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") +if (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA) + include(CMakeLists.windows-x86_64.txt) +elseif (APPLE AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64") include(CMakeLists.darwin-x86_64.txt) endif() diff --git a/library/cpp/lfalloc/yt/CMakeLists.windows-x86_64.txt b/library/cpp/lfalloc/yt/CMakeLists.windows-x86_64.txt new file mode 100644 index 00000000000..ab5c2e2e91f --- /dev/null +++ b/library/cpp/lfalloc/yt/CMakeLists.windows-x86_64.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-yt) +target_compile_options(cpp-lfalloc-yt PRIVATE + -DLFALLOC_YT + $<IF:$<CXX_COMPILER_ID:MSVC>,,-Wno-everything> +) +target_link_libraries(cpp-lfalloc-yt PUBLIC + contrib-libs-cxxsupp + cpp-malloc-api +) +target_sources(cpp-lfalloc-yt PRIVATE + ${CMAKE_SOURCE_DIR}/library/cpp/lfalloc/lf_allocX64.cpp +) |