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/jemalloc | |
parent | 471e9b902d01b70b2d12146772e30528a216ee82 (diff) | |
download | ydb-d32759b7eb812b4a4033cc61e1e98245544b4992.tar.gz |
intermediate changes
ref:7e819949a28b77d60c98019ed1950733e734a77e
Diffstat (limited to 'contrib/libs/jemalloc')
-rw-r--r-- | contrib/libs/jemalloc/CMakeLists.darwin.txt | 73 | ||||
-rw-r--r-- | contrib/libs/jemalloc/CMakeLists.linux.txt | 59 | ||||
-rw-r--r-- | contrib/libs/jemalloc/CMakeLists.txt | 56 |
3 files changed, 137 insertions, 51 deletions
diff --git a/contrib/libs/jemalloc/CMakeLists.darwin.txt b/contrib/libs/jemalloc/CMakeLists.darwin.txt new file mode 100644 index 0000000000..c286caa561 --- /dev/null +++ b/contrib/libs/jemalloc/CMakeLists.darwin.txt @@ -0,0 +1,73 @@ + +# 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(contrib-libs-jemalloc) +target_compile_options(contrib-libs-jemalloc PRIVATE + -funroll-loops +) +target_include_directories(contrib-libs-jemalloc PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/include + ${CMAKE_SOURCE_DIR}/contrib/libs/libunwind/include +) +target_link_libraries(contrib-libs-jemalloc PUBLIC + contrib-libs-cxxsupp +) +target_sources(contrib-libs-jemalloc PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/zone.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/hack.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/arena.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/background_thread.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/base.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/bin.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/bitmap.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/ckh.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/ctl.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/div.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/extent.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/extent_dss.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/extent_mmap.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/hash.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/hook.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/jemalloc.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/jemalloc_cpp.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/large.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/log.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/malloc_io.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/mutex.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/mutex_pool.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/nstime.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/pages.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/prng.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/prof.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/rtree.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/safety_check.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/sc.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/stats.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/sz.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/tcache.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/test_hooks.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/ticker.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/tsd.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/witness.c +) + +add_global_library_for(contrib-libs-jemalloc.global contrib-libs-jemalloc) +target_compile_options(contrib-libs-jemalloc.global PRIVATE + -funroll-loops +) +target_include_directories(contrib-libs-jemalloc.global PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/include + ${CMAKE_SOURCE_DIR}/contrib/libs/libunwind/include +) +target_link_libraries(contrib-libs-jemalloc.global PUBLIC + contrib-libs-cxxsupp +) +target_sources(contrib-libs-jemalloc.global PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/reg_zone.cpp +) diff --git a/contrib/libs/jemalloc/CMakeLists.linux.txt b/contrib/libs/jemalloc/CMakeLists.linux.txt new file mode 100644 index 0000000000..bcb3e53576 --- /dev/null +++ b/contrib/libs/jemalloc/CMakeLists.linux.txt @@ -0,0 +1,59 @@ + +# 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(contrib-libs-jemalloc) +target_compile_options(contrib-libs-jemalloc PRIVATE + -funroll-loops + -fvisibility=hidden +) +target_include_directories(contrib-libs-jemalloc PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/include + ${CMAKE_SOURCE_DIR}/contrib/libs/libunwind/include +) +target_link_libraries(contrib-libs-jemalloc PUBLIC + contrib-libs-cxxsupp + contrib-libs-libunwind +) +target_sources(contrib-libs-jemalloc PRIVATE + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/hack.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/arena.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/background_thread.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/base.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/bin.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/bitmap.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/ckh.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/ctl.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/div.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/extent.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/extent_dss.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/extent_mmap.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/hash.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/hook.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/jemalloc.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/jemalloc_cpp.cpp + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/large.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/log.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/malloc_io.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/mutex.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/mutex_pool.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/nstime.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/pages.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/prng.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/prof.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/rtree.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/safety_check.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/sc.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/stats.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/sz.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/tcache.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/test_hooks.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/ticker.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/tsd.c + ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/witness.c +) diff --git a/contrib/libs/jemalloc/CMakeLists.txt b/contrib/libs/jemalloc/CMakeLists.txt index bcb3e53576..a681d385f3 100644 --- a/contrib/libs/jemalloc/CMakeLists.txt +++ b/contrib/libs/jemalloc/CMakeLists.txt @@ -6,54 +6,8 @@ # original buildsystem will not be accepted. - -add_library(contrib-libs-jemalloc) -target_compile_options(contrib-libs-jemalloc PRIVATE - -funroll-loops - -fvisibility=hidden -) -target_include_directories(contrib-libs-jemalloc PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/include - ${CMAKE_SOURCE_DIR}/contrib/libs/libunwind/include -) -target_link_libraries(contrib-libs-jemalloc PUBLIC - contrib-libs-cxxsupp - contrib-libs-libunwind -) -target_sources(contrib-libs-jemalloc PRIVATE - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/hack.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/arena.c - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/background_thread.c - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/base.c - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/bin.c - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/bitmap.c - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/ckh.c - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/ctl.c - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/div.c - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/extent.c - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/extent_dss.c - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/extent_mmap.c - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/hash.c - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/hook.c - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/jemalloc.c - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/jemalloc_cpp.cpp - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/large.c - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/log.c - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/malloc_io.c - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/mutex.c - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/mutex_pool.c - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/nstime.c - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/pages.c - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/prng.c - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/prof.c - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/rtree.c - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/safety_check.c - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/sc.c - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/stats.c - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/sz.c - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/tcache.c - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/test_hooks.c - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/ticker.c - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/tsd.c - ${CMAKE_SOURCE_DIR}/contrib/libs/jemalloc/src/witness.c -) +if (APPLE) + include(CMakeLists.darwin.txt) +elseif (UNIX) + include(CMakeLists.linux.txt) +endif() |