diff options
author | reshilkin <reshilkin@yandex-team.com> | 2023-07-25 17:32:59 +0300 |
---|---|---|
committer | root <root@qavm-2ed34686.qemu> | 2023-07-25 17:32:59 +0300 |
commit | 4b24a7df4a2e15ae87c76489938287018ad62fda (patch) | |
tree | 4e55e6c7ef1d70264c548dc2b45c83afc298702f /library/cpp/sanitizer | |
parent | e7e4a402ea255d3d495a0c41bf07999a4066bd6a (diff) | |
download | ydb-4b24a7df4a2e15ae87c76489938287018ad62fda.tar.gz |
Add explicit sanitizer dependencies
Diffstat (limited to 'library/cpp/sanitizer')
6 files changed, 96 insertions, 0 deletions
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 +) |