aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/tcmalloc
diff options
context:
space:
mode:
authorrobot-ya-builder <robot-ya-builder@yandex-team.com>2022-09-01 05:47:31 +0300
committerrobot-ya-builder <robot-ya-builder@yandex-team.com>2022-09-01 05:47:31 +0300
commite83b936566d59e48df0aa4c414beaf0c4519c772 (patch)
tree43d715760743f81e2060d6ee6f4d4c9d8693751e /contrib/libs/tcmalloc
parentfc8096bf8173562afc5da58dbbb019af2ce1ee2f (diff)
downloadydb-e83b936566d59e48df0aa4c414beaf0c4519c772.tar.gz
Update external build system generation utility
* [cmake] Hierarchical add_subdirectroy structure * [cmake] Support for same file compilation multiple times with different flags
Diffstat (limited to 'contrib/libs/tcmalloc')
-rw-r--r--contrib/libs/tcmalloc/CMakeLists.darwin.txt9
-rw-r--r--contrib/libs/tcmalloc/CMakeLists.linux.txt2
-rw-r--r--contrib/libs/tcmalloc/CMakeLists.txt4
3 files changed, 14 insertions, 1 deletions
diff --git a/contrib/libs/tcmalloc/CMakeLists.darwin.txt b/contrib/libs/tcmalloc/CMakeLists.darwin.txt
new file mode 100644
index 0000000000..7898448e35
--- /dev/null
+++ b/contrib/libs/tcmalloc/CMakeLists.darwin.txt
@@ -0,0 +1,9 @@
+
+# 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(malloc_extension)
diff --git a/contrib/libs/tcmalloc/CMakeLists.linux.txt b/contrib/libs/tcmalloc/CMakeLists.linux.txt
index 8f96b977ae..51a7593d3c 100644
--- a/contrib/libs/tcmalloc/CMakeLists.linux.txt
+++ b/contrib/libs/tcmalloc/CMakeLists.linux.txt
@@ -6,6 +6,8 @@
# original buildsystem will not be accepted.
+add_subdirectory(malloc_extension)
+add_subdirectory(no_percpu_cache)
add_library(contrib-libs-tcmalloc)
target_compile_options(contrib-libs-tcmalloc PRIVATE
diff --git a/contrib/libs/tcmalloc/CMakeLists.txt b/contrib/libs/tcmalloc/CMakeLists.txt
index e8c98bfd99..fc7b1ee73c 100644
--- a/contrib/libs/tcmalloc/CMakeLists.txt
+++ b/contrib/libs/tcmalloc/CMakeLists.txt
@@ -6,6 +6,8 @@
# original buildsystem will not be accepted.
-if (UNIX AND NOT APPLE)
+if (APPLE)
+ include(CMakeLists.darwin.txt)
+elseif (UNIX AND NOT APPLE)
include(CMakeLists.linux.txt)
endif()