aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/lfalloc/yt
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2023-03-09 12:42:44 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2023-03-09 12:42:44 +0300
commit6324d075a5e80b6943b5de6b465b775050fe83df (patch)
treee02ce32e988042438f64df770a528164ac572879 /library/cpp/lfalloc/yt
parent039e25e1597bec288de44e5061c1b84e195add08 (diff)
downloadydb-6324d075a5e80b6943b5de6b465b775050fe83df.tar.gz
Intermediate changes
Diffstat (limited to 'library/cpp/lfalloc/yt')
-rw-r--r--library/cpp/lfalloc/yt/CMakeLists.txt4
-rw-r--r--library/cpp/lfalloc/yt/CMakeLists.windows-x86_64.txt21
2 files changed, 24 insertions, 1 deletions
diff --git a/library/cpp/lfalloc/yt/CMakeLists.txt b/library/cpp/lfalloc/yt/CMakeLists.txt
index 5bedd04e09..86c4d15dc3 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 0000000000..ab5c2e2e91
--- /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
+)