diff options
author | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-03-10 11:08:43 +0300 |
---|---|---|
committer | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-03-10 11:08:43 +0300 |
commit | d32759b7eb812b4a4033cc61e1e98245544b4992 (patch) | |
tree | 22bbb3e9b46c1b55818aaf475f699ae187ce328b /contrib/libs/tcmalloc/malloc_extension | |
parent | 471e9b902d01b70b2d12146772e30528a216ee82 (diff) | |
download | ydb-d32759b7eb812b4a4033cc61e1e98245544b4992.tar.gz |
intermediate changes
ref:7e819949a28b77d60c98019ed1950733e734a77e
Diffstat (limited to 'contrib/libs/tcmalloc/malloc_extension')
-rw-r--r-- | contrib/libs/tcmalloc/malloc_extension/CMakeLists.linux.txt | 26 | ||||
-rw-r--r-- | contrib/libs/tcmalloc/malloc_extension/CMakeLists.txt | 21 |
2 files changed, 29 insertions, 18 deletions
diff --git a/contrib/libs/tcmalloc/malloc_extension/CMakeLists.linux.txt b/contrib/libs/tcmalloc/malloc_extension/CMakeLists.linux.txt new file mode 100644 index 0000000000..872fa3509f --- /dev/null +++ b/contrib/libs/tcmalloc/malloc_extension/CMakeLists.linux.txt @@ -0,0 +1,26 @@ + +# 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_library(libs-tcmalloc-malloc_extension) +target_compile_options(libs-tcmalloc-malloc_extension PRIVATE + -DTCMALLOC_256K_PAGES +) +target_include_directories(libs-tcmalloc-malloc_extension PUBLIC + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc +) +target_include_directories(libs-tcmalloc-malloc_extension PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc +) +target_link_libraries(libs-tcmalloc-malloc_extension PUBLIC + contrib-libs-cxxsupp + contrib-restricted-abseil-cpp +) +target_sources(libs-tcmalloc-malloc_extension PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/malloc_extension.cc +) diff --git a/contrib/libs/tcmalloc/malloc_extension/CMakeLists.txt b/contrib/libs/tcmalloc/malloc_extension/CMakeLists.txt index 872fa3509f..c031ddb850 100644 --- a/contrib/libs/tcmalloc/malloc_extension/CMakeLists.txt +++ b/contrib/libs/tcmalloc/malloc_extension/CMakeLists.txt @@ -6,21 +6,6 @@ # original buildsystem will not be accepted. - -add_library(libs-tcmalloc-malloc_extension) -target_compile_options(libs-tcmalloc-malloc_extension PRIVATE - -DTCMALLOC_256K_PAGES -) -target_include_directories(libs-tcmalloc-malloc_extension PUBLIC - ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc -) -target_include_directories(libs-tcmalloc-malloc_extension PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc -) -target_link_libraries(libs-tcmalloc-malloc_extension PUBLIC - contrib-libs-cxxsupp - contrib-restricted-abseil-cpp -) -target_sources(libs-tcmalloc-malloc_extension PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc/tcmalloc/malloc_extension.cc -) +if (UNIX) + include(CMakeLists.linux.txt) +endif() |