aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreshilkin <reshilkin@yandex-team.com>2023-07-25 17:32:59 +0300
committerroot <root@qavm-2ed34686.qemu>2023-07-25 17:32:59 +0300
commit4b24a7df4a2e15ae87c76489938287018ad62fda (patch)
tree4e55e6c7ef1d70264c548dc2b45c83afc298702f
parente7e4a402ea255d3d495a0c41bf07999a4066bd6a (diff)
downloadydb-4b24a7df4a2e15ae87c76489938287018ad62fda.tar.gz
Add explicit sanitizer dependencies
-rw-r--r--contrib/libs/libfuzzer/ya.make4
-rw-r--r--contrib/libs/llvm12/lib/Support/CMakeLists.darwin-x86_64.txt1
-rw-r--r--contrib/libs/llvm12/lib/Support/CMakeLists.linux-aarch64.txt1
-rw-r--r--contrib/libs/llvm12/lib/Support/CMakeLists.linux-x86_64.txt1
-rw-r--r--contrib/libs/llvm12/lib/Support/CMakeLists.windows-x86_64.txt1
-rw-r--r--contrib/libs/llvm12/lib/Support/ya.make1
-rw-r--r--contrib/libs/llvm12/utils/TableGen/CMakeLists.darwin-x86_64.txt1
-rw-r--r--contrib/libs/llvm12/utils/TableGen/CMakeLists.linux-aarch64.txt1
-rw-r--r--contrib/libs/llvm12/utils/TableGen/CMakeLists.linux-x86_64.txt1
-rw-r--r--contrib/libs/llvm12/utils/TableGen/CMakeLists.windows-x86_64.txt1
-rw-r--r--contrib/libs/llvm12/utils/TableGen/ya.make1
-rw-r--r--contrib/libs/llvm14/lib/Support/ya.make1
-rw-r--r--contrib/libs/llvm14/utils/TableGen/ya.make1
-rw-r--r--contrib/libs/llvm16/lib/Support/ya.make1
-rw-r--r--contrib/libs/llvm16/utils/TableGen/ya.make1
-rw-r--r--library/cpp/CMakeLists.darwin-x86_64.txt1
-rw-r--r--library/cpp/CMakeLists.linux-aarch64.txt1
-rw-r--r--library/cpp/CMakeLists.linux-x86_64.txt1
-rw-r--r--library/cpp/CMakeLists.windows-x86_64.txt1
-rw-r--r--library/cpp/sanitizer/CMakeLists.txt9
-rw-r--r--library/cpp/sanitizer/include/CMakeLists.darwin-x86_64.txt17
-rw-r--r--library/cpp/sanitizer/include/CMakeLists.linux-aarch64.txt18
-rw-r--r--library/cpp/sanitizer/include/CMakeLists.linux-x86_64.txt18
-rw-r--r--library/cpp/sanitizer/include/CMakeLists.txt17
-rw-r--r--library/cpp/sanitizer/include/CMakeLists.windows-x86_64.txt17
25 files changed, 118 insertions, 0 deletions
diff --git a/contrib/libs/libfuzzer/ya.make b/contrib/libs/libfuzzer/ya.make
index a4f5ab64b0..b3db84a8c4 100644
--- a/contrib/libs/libfuzzer/ya.make
+++ b/contrib/libs/libfuzzer/ya.make
@@ -18,6 +18,10 @@ ORIGINAL_SOURCE(https://github.com/llvm/llvm-project/archive/llvmorg-15.0.5.tar.
SET(SANITIZER_CFLAGS)
+PEERDIR(
+ library/cpp/sanitizer/include
+)
+
NO_COMPILER_WARNINGS()
NO_UTIL()
diff --git a/contrib/libs/llvm12/lib/Support/CMakeLists.darwin-x86_64.txt b/contrib/libs/llvm12/lib/Support/CMakeLists.darwin-x86_64.txt
index e00be62440..de60d8017d 100644
--- a/contrib/libs/llvm12/lib/Support/CMakeLists.darwin-x86_64.txt
+++ b/contrib/libs/llvm12/lib/Support/CMakeLists.darwin-x86_64.txt
@@ -20,6 +20,7 @@ target_link_libraries(llvm12-lib-Support PUBLIC
contrib-libs-llvm12
llvm12-lib-Demangle
ZLIB::ZLIB
+ cpp-sanitizer-include
)
target_sources(llvm12-lib-Support PRIVATE
${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Support/AArch64TargetParser.cpp
diff --git a/contrib/libs/llvm12/lib/Support/CMakeLists.linux-aarch64.txt b/contrib/libs/llvm12/lib/Support/CMakeLists.linux-aarch64.txt
index 89974d62a5..0f0db7b995 100644
--- a/contrib/libs/llvm12/lib/Support/CMakeLists.linux-aarch64.txt
+++ b/contrib/libs/llvm12/lib/Support/CMakeLists.linux-aarch64.txt
@@ -21,6 +21,7 @@ target_link_libraries(llvm12-lib-Support PUBLIC
contrib-libs-llvm12
llvm12-lib-Demangle
ZLIB::ZLIB
+ cpp-sanitizer-include
)
target_sources(llvm12-lib-Support PRIVATE
${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Support/AArch64TargetParser.cpp
diff --git a/contrib/libs/llvm12/lib/Support/CMakeLists.linux-x86_64.txt b/contrib/libs/llvm12/lib/Support/CMakeLists.linux-x86_64.txt
index 89974d62a5..0f0db7b995 100644
--- a/contrib/libs/llvm12/lib/Support/CMakeLists.linux-x86_64.txt
+++ b/contrib/libs/llvm12/lib/Support/CMakeLists.linux-x86_64.txt
@@ -21,6 +21,7 @@ target_link_libraries(llvm12-lib-Support PUBLIC
contrib-libs-llvm12
llvm12-lib-Demangle
ZLIB::ZLIB
+ cpp-sanitizer-include
)
target_sources(llvm12-lib-Support PRIVATE
${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Support/AArch64TargetParser.cpp
diff --git a/contrib/libs/llvm12/lib/Support/CMakeLists.windows-x86_64.txt b/contrib/libs/llvm12/lib/Support/CMakeLists.windows-x86_64.txt
index e00be62440..de60d8017d 100644
--- a/contrib/libs/llvm12/lib/Support/CMakeLists.windows-x86_64.txt
+++ b/contrib/libs/llvm12/lib/Support/CMakeLists.windows-x86_64.txt
@@ -20,6 +20,7 @@ target_link_libraries(llvm12-lib-Support PUBLIC
contrib-libs-llvm12
llvm12-lib-Demangle
ZLIB::ZLIB
+ cpp-sanitizer-include
)
target_sources(llvm12-lib-Support PRIVATE
${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/lib/Support/AArch64TargetParser.cpp
diff --git a/contrib/libs/llvm12/lib/Support/ya.make b/contrib/libs/llvm12/lib/Support/ya.make
index 392a6f8c65..2b8d22bb6a 100644
--- a/contrib/libs/llvm12/lib/Support/ya.make
+++ b/contrib/libs/llvm12/lib/Support/ya.make
@@ -19,6 +19,7 @@ PEERDIR(
contrib/libs/llvm12
contrib/libs/llvm12/lib/Demangle
contrib/libs/zlib
+ library/cpp/sanitizer/include
)
ADDINCL(
diff --git a/contrib/libs/llvm12/utils/TableGen/CMakeLists.darwin-x86_64.txt b/contrib/libs/llvm12/utils/TableGen/CMakeLists.darwin-x86_64.txt
index 796725d923..9556066b21 100644
--- a/contrib/libs/llvm12/utils/TableGen/CMakeLists.darwin-x86_64.txt
+++ b/contrib/libs/llvm12/utils/TableGen/CMakeLists.darwin-x86_64.txt
@@ -22,6 +22,7 @@ target_link_libraries(llvm-tblgen PUBLIC
llvm12-lib-Support
llvm12-lib-TableGen
utils-TableGen-GlobalISel
+ cpp-sanitizer-include
)
target_link_options(llvm-tblgen PRIVATE
-Wl,-platform_version,macos,11.0,11.0
diff --git a/contrib/libs/llvm12/utils/TableGen/CMakeLists.linux-aarch64.txt b/contrib/libs/llvm12/utils/TableGen/CMakeLists.linux-aarch64.txt
index 0eee2d9fa9..1421a2e7ac 100644
--- a/contrib/libs/llvm12/utils/TableGen/CMakeLists.linux-aarch64.txt
+++ b/contrib/libs/llvm12/utils/TableGen/CMakeLists.linux-aarch64.txt
@@ -23,6 +23,7 @@ target_link_libraries(llvm-tblgen PUBLIC
llvm12-lib-Support
llvm12-lib-TableGen
utils-TableGen-GlobalISel
+ cpp-sanitizer-include
)
target_link_options(llvm-tblgen PRIVATE
-ldl
diff --git a/contrib/libs/llvm12/utils/TableGen/CMakeLists.linux-x86_64.txt b/contrib/libs/llvm12/utils/TableGen/CMakeLists.linux-x86_64.txt
index ef904d2574..947f97be94 100644
--- a/contrib/libs/llvm12/utils/TableGen/CMakeLists.linux-x86_64.txt
+++ b/contrib/libs/llvm12/utils/TableGen/CMakeLists.linux-x86_64.txt
@@ -23,6 +23,7 @@ target_link_libraries(llvm-tblgen PUBLIC
llvm12-lib-Support
llvm12-lib-TableGen
utils-TableGen-GlobalISel
+ cpp-sanitizer-include
)
target_link_options(llvm-tblgen PRIVATE
-ldl
diff --git a/contrib/libs/llvm12/utils/TableGen/CMakeLists.windows-x86_64.txt b/contrib/libs/llvm12/utils/TableGen/CMakeLists.windows-x86_64.txt
index b42e806b4e..ca05ebeca7 100644
--- a/contrib/libs/llvm12/utils/TableGen/CMakeLists.windows-x86_64.txt
+++ b/contrib/libs/llvm12/utils/TableGen/CMakeLists.windows-x86_64.txt
@@ -22,6 +22,7 @@ target_link_libraries(llvm-tblgen PUBLIC
llvm12-lib-Support
llvm12-lib-TableGen
utils-TableGen-GlobalISel
+ cpp-sanitizer-include
)
target_sources(llvm-tblgen PRIVATE
${CMAKE_SOURCE_DIR}/contrib/libs/llvm12/utils/TableGen/AsmMatcherEmitter.cpp
diff --git a/contrib/libs/llvm12/utils/TableGen/ya.make b/contrib/libs/llvm12/utils/TableGen/ya.make
index 2cda74481e..25a6825021 100644
--- a/contrib/libs/llvm12/utils/TableGen/ya.make
+++ b/contrib/libs/llvm12/utils/TableGen/ya.make
@@ -12,6 +12,7 @@ PEERDIR(
contrib/libs/llvm12/lib/Support
contrib/libs/llvm12/lib/TableGen
contrib/libs/llvm12/utils/TableGen/GlobalISel
+ library/cpp/sanitizer/include
)
ADDINCL(
diff --git a/contrib/libs/llvm14/lib/Support/ya.make b/contrib/libs/llvm14/lib/Support/ya.make
index be5f7ef1ff..2828bab44a 100644
--- a/contrib/libs/llvm14/lib/Support/ya.make
+++ b/contrib/libs/llvm14/lib/Support/ya.make
@@ -18,6 +18,7 @@ PEERDIR(
contrib/libs/llvm14
contrib/libs/llvm14/lib/Demangle
contrib/libs/zlib
+ library/cpp/sanitizer/include
)
ADDINCL(
diff --git a/contrib/libs/llvm14/utils/TableGen/ya.make b/contrib/libs/llvm14/utils/TableGen/ya.make
index 213d29037b..54e2407a48 100644
--- a/contrib/libs/llvm14/utils/TableGen/ya.make
+++ b/contrib/libs/llvm14/utils/TableGen/ya.make
@@ -12,6 +12,7 @@ PEERDIR(
contrib/libs/llvm14/lib/Support
contrib/libs/llvm14/lib/TableGen
contrib/libs/llvm14/utils/TableGen/GlobalISel
+ library/cpp/sanitizer/include
)
ADDINCL(
diff --git a/contrib/libs/llvm16/lib/Support/ya.make b/contrib/libs/llvm16/lib/Support/ya.make
index f146a8bd55..62587163a7 100644
--- a/contrib/libs/llvm16/lib/Support/ya.make
+++ b/contrib/libs/llvm16/lib/Support/ya.make
@@ -20,6 +20,7 @@ PEERDIR(
contrib/libs/llvm16
contrib/libs/llvm16/lib/Demangle
contrib/libs/zlib
+ library/cpp/sanitizer/include
)
ADDINCL(
diff --git a/contrib/libs/llvm16/utils/TableGen/ya.make b/contrib/libs/llvm16/utils/TableGen/ya.make
index 38508394f6..c5512c49eb 100644
--- a/contrib/libs/llvm16/utils/TableGen/ya.make
+++ b/contrib/libs/llvm16/utils/TableGen/ya.make
@@ -12,6 +12,7 @@ PEERDIR(
contrib/libs/llvm16/lib/Support
contrib/libs/llvm16/lib/TableGen
contrib/libs/llvm16/utils/TableGen/GlobalISel
+ library/cpp/sanitizer/include
)
ADDINCL(
diff --git a/library/cpp/CMakeLists.darwin-x86_64.txt b/library/cpp/CMakeLists.darwin-x86_64.txt
index 86cbdf3d7e..81a8d715c0 100644
--- a/library/cpp/CMakeLists.darwin-x86_64.txt
+++ b/library/cpp/CMakeLists.darwin-x86_64.txt
@@ -68,6 +68,7 @@ add_subdirectory(random_provider)
add_subdirectory(regex)
add_subdirectory(resource)
add_subdirectory(retry)
+add_subdirectory(sanitizer)
add_subdirectory(scheme)
add_subdirectory(sighandler)
add_subdirectory(sliding_window)
diff --git a/library/cpp/CMakeLists.linux-aarch64.txt b/library/cpp/CMakeLists.linux-aarch64.txt
index 4f422c15bc..5e6834dea1 100644
--- a/library/cpp/CMakeLists.linux-aarch64.txt
+++ b/library/cpp/CMakeLists.linux-aarch64.txt
@@ -67,6 +67,7 @@ add_subdirectory(random_provider)
add_subdirectory(regex)
add_subdirectory(resource)
add_subdirectory(retry)
+add_subdirectory(sanitizer)
add_subdirectory(scheme)
add_subdirectory(sighandler)
add_subdirectory(sliding_window)
diff --git a/library/cpp/CMakeLists.linux-x86_64.txt b/library/cpp/CMakeLists.linux-x86_64.txt
index 86cbdf3d7e..81a8d715c0 100644
--- a/library/cpp/CMakeLists.linux-x86_64.txt
+++ b/library/cpp/CMakeLists.linux-x86_64.txt
@@ -68,6 +68,7 @@ add_subdirectory(random_provider)
add_subdirectory(regex)
add_subdirectory(resource)
add_subdirectory(retry)
+add_subdirectory(sanitizer)
add_subdirectory(scheme)
add_subdirectory(sighandler)
add_subdirectory(sliding_window)
diff --git a/library/cpp/CMakeLists.windows-x86_64.txt b/library/cpp/CMakeLists.windows-x86_64.txt
index 86cbdf3d7e..81a8d715c0 100644
--- a/library/cpp/CMakeLists.windows-x86_64.txt
+++ b/library/cpp/CMakeLists.windows-x86_64.txt
@@ -68,6 +68,7 @@ add_subdirectory(random_provider)
add_subdirectory(regex)
add_subdirectory(resource)
add_subdirectory(retry)
+add_subdirectory(sanitizer)
add_subdirectory(scheme)
add_subdirectory(sighandler)
add_subdirectory(sliding_window)
diff --git a/library/cpp/sanitizer/CMakeLists.txt b/library/cpp/sanitizer/CMakeLists.txt
new file mode 100644
index 0000000000..6ec5506f43
--- /dev/null
+++ b/library/cpp/sanitizer/CMakeLists.txt
@@ -0,0 +1,9 @@
+
+# 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_subdirectory(include)
diff --git a/library/cpp/sanitizer/include/CMakeLists.darwin-x86_64.txt b/library/cpp/sanitizer/include/CMakeLists.darwin-x86_64.txt
new file mode 100644
index 0000000000..f10f4f4729
--- /dev/null
+++ b/library/cpp/sanitizer/include/CMakeLists.darwin-x86_64.txt
@@ -0,0 +1,17 @@
+
+# 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-sanitizer-include INTERFACE)
+target_include_directories(cpp-sanitizer-include INTERFACE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/clang14-rt/include
+)
+target_link_libraries(cpp-sanitizer-include INTERFACE
+ contrib-libs-cxxsupp
+ yutil
+)
diff --git a/library/cpp/sanitizer/include/CMakeLists.linux-aarch64.txt b/library/cpp/sanitizer/include/CMakeLists.linux-aarch64.txt
new file mode 100644
index 0000000000..b4d9af08ae
--- /dev/null
+++ b/library/cpp/sanitizer/include/CMakeLists.linux-aarch64.txt
@@ -0,0 +1,18 @@
+
+# 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-sanitizer-include INTERFACE)
+target_include_directories(cpp-sanitizer-include INTERFACE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/clang14-rt/include
+)
+target_link_libraries(cpp-sanitizer-include INTERFACE
+ contrib-libs-linux-headers
+ contrib-libs-cxxsupp
+ yutil
+)
diff --git a/library/cpp/sanitizer/include/CMakeLists.linux-x86_64.txt b/library/cpp/sanitizer/include/CMakeLists.linux-x86_64.txt
new file mode 100644
index 0000000000..b4d9af08ae
--- /dev/null
+++ b/library/cpp/sanitizer/include/CMakeLists.linux-x86_64.txt
@@ -0,0 +1,18 @@
+
+# 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-sanitizer-include INTERFACE)
+target_include_directories(cpp-sanitizer-include INTERFACE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/clang14-rt/include
+)
+target_link_libraries(cpp-sanitizer-include INTERFACE
+ contrib-libs-linux-headers
+ contrib-libs-cxxsupp
+ yutil
+)
diff --git a/library/cpp/sanitizer/include/CMakeLists.txt b/library/cpp/sanitizer/include/CMakeLists.txt
new file mode 100644
index 0000000000..f8b31df0c1
--- /dev/null
+++ b/library/cpp/sanitizer/include/CMakeLists.txt
@@ -0,0 +1,17 @@
+
+# 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.
+
+
+if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64" AND NOT HAVE_CUDA)
+ include(CMakeLists.linux-aarch64.txt)
+elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
+ include(CMakeLists.darwin-x86_64.txt)
+elseif (WIN32 AND CMAKE_SYSTEM_PROCESSOR STREQUAL "AMD64" AND NOT HAVE_CUDA)
+ include(CMakeLists.windows-x86_64.txt)
+elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND NOT HAVE_CUDA)
+ include(CMakeLists.linux-x86_64.txt)
+endif()
diff --git a/library/cpp/sanitizer/include/CMakeLists.windows-x86_64.txt b/library/cpp/sanitizer/include/CMakeLists.windows-x86_64.txt
new file mode 100644
index 0000000000..f10f4f4729
--- /dev/null
+++ b/library/cpp/sanitizer/include/CMakeLists.windows-x86_64.txt
@@ -0,0 +1,17 @@
+
+# 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-sanitizer-include INTERFACE)
+target_include_directories(cpp-sanitizer-include INTERFACE
+ ${CMAKE_SOURCE_DIR}/contrib/libs/clang14-rt/include
+)
+target_link_libraries(cpp-sanitizer-include INTERFACE
+ contrib-libs-cxxsupp
+ yutil
+)