aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/tcmalloc
diff options
context:
space:
mode:
authorsvidyuk <svidyuk@yandex-team.com>2023-02-18 07:43:57 +0300
committersvidyuk <svidyuk@yandex-team.com>2023-02-18 07:43:57 +0300
commita9e5890a07cad8cfc475223eb12855a31ec8318a (patch)
tree104d1c6ba83fb89e4373d7582c7a465c9fbbad16 /contrib/libs/tcmalloc
parent8febb7430db23f80ae26a24cbfdc17e40ae3d1db (diff)
downloadydb-a9e5890a07cad8cfc475223eb12855a31ec8318a.tar.gz
NO_COMPILER_WARNINGS in cmake msvc builds
Diffstat (limited to 'contrib/libs/tcmalloc')
-rw-r--r--contrib/libs/tcmalloc/CMakeLists.linux-aarch64.txt4
-rw-r--r--contrib/libs/tcmalloc/CMakeLists.linux.txt4
-rw-r--r--contrib/libs/tcmalloc/malloc_extension/CMakeLists.darwin.txt2
-rw-r--r--contrib/libs/tcmalloc/malloc_extension/CMakeLists.linux-aarch64.txt2
-rw-r--r--contrib/libs/tcmalloc/malloc_extension/CMakeLists.linux.txt2
-rw-r--r--contrib/libs/tcmalloc/no_percpu_cache/CMakeLists.linux.txt4
6 files changed, 9 insertions, 9 deletions
diff --git a/contrib/libs/tcmalloc/CMakeLists.linux-aarch64.txt b/contrib/libs/tcmalloc/CMakeLists.linux-aarch64.txt
index 3284b67fd4..ffdc4ae396 100644
--- a/contrib/libs/tcmalloc/CMakeLists.linux-aarch64.txt
+++ b/contrib/libs/tcmalloc/CMakeLists.linux-aarch64.txt
@@ -11,7 +11,7 @@ add_subdirectory(malloc_extension)
add_library(contrib-libs-tcmalloc)
target_compile_options(contrib-libs-tcmalloc PRIVATE
-DTCMALLOC_256K_PAGES
- -Wno-everything
+ $<IF:$<CXX_COMPILER_ID:MSVC>,,-Wno-everything>
)
target_link_libraries(contrib-libs-tcmalloc PUBLIC
contrib-libs-linux-headers
@@ -26,7 +26,7 @@ target_sources(contrib-libs-tcmalloc PRIVATE
add_global_library_for(contrib-libs-tcmalloc.global contrib-libs-tcmalloc)
target_compile_options(contrib-libs-tcmalloc.global PRIVATE
-DTCMALLOC_256K_PAGES
- -Wno-everything
+ $<IF:$<CXX_COMPILER_ID:MSVC>,,-Wno-everything>
)
target_link_libraries(contrib-libs-tcmalloc.global PUBLIC
contrib-libs-linux-headers
diff --git a/contrib/libs/tcmalloc/CMakeLists.linux.txt b/contrib/libs/tcmalloc/CMakeLists.linux.txt
index d593b461a7..53fb70fafa 100644
--- a/contrib/libs/tcmalloc/CMakeLists.linux.txt
+++ b/contrib/libs/tcmalloc/CMakeLists.linux.txt
@@ -12,7 +12,7 @@ add_subdirectory(no_percpu_cache)
add_library(contrib-libs-tcmalloc)
target_compile_options(contrib-libs-tcmalloc PRIVATE
-DTCMALLOC_256K_PAGES
- -Wno-everything
+ $<IF:$<CXX_COMPILER_ID:MSVC>,,-Wno-everything>
)
target_link_libraries(contrib-libs-tcmalloc PUBLIC
contrib-libs-linux-headers
@@ -27,7 +27,7 @@ target_sources(contrib-libs-tcmalloc PRIVATE
add_global_library_for(contrib-libs-tcmalloc.global contrib-libs-tcmalloc)
target_compile_options(contrib-libs-tcmalloc.global PRIVATE
-DTCMALLOC_256K_PAGES
- -Wno-everything
+ $<IF:$<CXX_COMPILER_ID:MSVC>,,-Wno-everything>
)
target_link_libraries(contrib-libs-tcmalloc.global PUBLIC
contrib-libs-linux-headers
diff --git a/contrib/libs/tcmalloc/malloc_extension/CMakeLists.darwin.txt b/contrib/libs/tcmalloc/malloc_extension/CMakeLists.darwin.txt
index 1ac50c58ef..ff72551b97 100644
--- a/contrib/libs/tcmalloc/malloc_extension/CMakeLists.darwin.txt
+++ b/contrib/libs/tcmalloc/malloc_extension/CMakeLists.darwin.txt
@@ -10,7 +10,7 @@
add_library(libs-tcmalloc-malloc_extension)
target_compile_options(libs-tcmalloc-malloc_extension PRIVATE
-DTCMALLOC_256K_PAGES
- -Wno-everything
+ $<IF:$<CXX_COMPILER_ID:MSVC>,,-Wno-everything>
)
target_include_directories(libs-tcmalloc-malloc_extension PUBLIC
${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc
diff --git a/contrib/libs/tcmalloc/malloc_extension/CMakeLists.linux-aarch64.txt b/contrib/libs/tcmalloc/malloc_extension/CMakeLists.linux-aarch64.txt
index 73f0cf0e7c..4fc12f623d 100644
--- a/contrib/libs/tcmalloc/malloc_extension/CMakeLists.linux-aarch64.txt
+++ b/contrib/libs/tcmalloc/malloc_extension/CMakeLists.linux-aarch64.txt
@@ -10,7 +10,7 @@
add_library(libs-tcmalloc-malloc_extension)
target_compile_options(libs-tcmalloc-malloc_extension PRIVATE
-DTCMALLOC_256K_PAGES
- -Wno-everything
+ $<IF:$<CXX_COMPILER_ID:MSVC>,,-Wno-everything>
)
target_include_directories(libs-tcmalloc-malloc_extension PUBLIC
${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc
diff --git a/contrib/libs/tcmalloc/malloc_extension/CMakeLists.linux.txt b/contrib/libs/tcmalloc/malloc_extension/CMakeLists.linux.txt
index 73f0cf0e7c..4fc12f623d 100644
--- a/contrib/libs/tcmalloc/malloc_extension/CMakeLists.linux.txt
+++ b/contrib/libs/tcmalloc/malloc_extension/CMakeLists.linux.txt
@@ -10,7 +10,7 @@
add_library(libs-tcmalloc-malloc_extension)
target_compile_options(libs-tcmalloc-malloc_extension PRIVATE
-DTCMALLOC_256K_PAGES
- -Wno-everything
+ $<IF:$<CXX_COMPILER_ID:MSVC>,,-Wno-everything>
)
target_include_directories(libs-tcmalloc-malloc_extension PUBLIC
${CMAKE_SOURCE_DIR}/contrib/libs/tcmalloc
diff --git a/contrib/libs/tcmalloc/no_percpu_cache/CMakeLists.linux.txt b/contrib/libs/tcmalloc/no_percpu_cache/CMakeLists.linux.txt
index 78c8390eab..7a19810cba 100644
--- a/contrib/libs/tcmalloc/no_percpu_cache/CMakeLists.linux.txt
+++ b/contrib/libs/tcmalloc/no_percpu_cache/CMakeLists.linux.txt
@@ -11,7 +11,7 @@ add_library(libs-tcmalloc-no_percpu_cache)
target_compile_options(libs-tcmalloc-no_percpu_cache PRIVATE
-DTCMALLOC_256K_PAGES
-DTCMALLOC_DEPRECATED_PERTHREAD
- -Wno-everything
+ $<IF:$<CXX_COMPILER_ID:MSVC>,,-Wno-everything>
)
target_link_libraries(libs-tcmalloc-no_percpu_cache PUBLIC
contrib-libs-linux-headers
@@ -27,7 +27,7 @@ add_global_library_for(libs-tcmalloc-no_percpu_cache.global libs-tcmalloc-no_per
target_compile_options(libs-tcmalloc-no_percpu_cache.global PRIVATE
-DTCMALLOC_256K_PAGES
-DTCMALLOC_DEPRECATED_PERTHREAD
- -Wno-everything
+ $<IF:$<CXX_COMPILER_ID:MSVC>,,-Wno-everything>
)
target_link_libraries(libs-tcmalloc-no_percpu_cache.global PUBLIC
contrib-libs-linux-headers