diff options
author | nkozlovskiy <nmk@ydb.tech> | 2023-10-11 19:11:46 +0300 |
---|---|---|
committer | nkozlovskiy <nmk@ydb.tech> | 2023-10-11 19:33:28 +0300 |
commit | 61b3971447e473726d6cdb23fc298e457b4d973c (patch) | |
tree | e2a2a864bb7717f7ae6138f6a3194a254dd2c7bb /library/cpp/sanitizer | |
parent | a674dc57d88d43c2e8e90a6084d5d2c988e0402c (diff) | |
download | ydb-61b3971447e473726d6cdb23fc298e457b4d973c.tar.gz |
add sanitizers dependencies
Diffstat (limited to 'library/cpp/sanitizer')
-rw-r--r-- | library/cpp/sanitizer/address/dynamic/ya.make | 22 | ||||
-rw-r--r-- | library/cpp/sanitizer/address/static/ya.make | 22 | ||||
-rw-r--r-- | library/cpp/sanitizer/leak/dynamic/ya.make | 20 | ||||
-rw-r--r-- | library/cpp/sanitizer/leak/static/ya.make | 18 | ||||
-rw-r--r-- | library/cpp/sanitizer/memory/static/ya.make | 20 | ||||
-rw-r--r-- | library/cpp/sanitizer/thread/dynamic/ya.make | 22 | ||||
-rw-r--r-- | library/cpp/sanitizer/thread/static/ya.make | 20 | ||||
-rw-r--r-- | library/cpp/sanitizer/undefined/dynamic/ya.make | 22 | ||||
-rw-r--r-- | library/cpp/sanitizer/undefined/static/ya.make | 20 | ||||
-rw-r--r-- | library/cpp/sanitizer/ya.make | 19 |
10 files changed, 205 insertions, 0 deletions
diff --git a/library/cpp/sanitizer/address/dynamic/ya.make b/library/cpp/sanitizer/address/dynamic/ya.make new file mode 100644 index 0000000000..4aeba7f2b5 --- /dev/null +++ b/library/cpp/sanitizer/address/dynamic/ya.make @@ -0,0 +1,22 @@ +DYNAMIC_LIBRARY() + +OWNER(g:devtools-contrib) + +NO_UTIL() + +EXPORT_ALL_DYNAMIC_SYMBOLS() + +IF (CLANG16) +DYNAMIC_LIBRARY_FROM( + contrib/libs/clang16-rt/lib/asan + contrib/libs/clang16-rt/lib/asan_cxx +) +ELSE() +DYNAMIC_LIBRARY_FROM( + contrib/libs/clang14-rt/lib/asan + contrib/libs/clang14-rt/lib/asan_cxx +) +ENDIF() + +END() + diff --git a/library/cpp/sanitizer/address/static/ya.make b/library/cpp/sanitizer/address/static/ya.make new file mode 100644 index 0000000000..eb9843bc6e --- /dev/null +++ b/library/cpp/sanitizer/address/static/ya.make @@ -0,0 +1,22 @@ +LIBRARY() + +OWNER(g:devtools-contrib) + +NO_UTIL() + +IF (CLANG16) +PEERDIR( + contrib/libs/clang16-rt/lib/asan + contrib/libs/clang16-rt/lib/asan_cxx + contrib/libs/clang16-rt/lib/asan_static +) +ELSE() +PEERDIR( + contrib/libs/clang14-rt/lib/asan + contrib/libs/clang14-rt/lib/asan_cxx + contrib/libs/clang14-rt/lib/asan_static +) +ENDIF() + +END() + diff --git a/library/cpp/sanitizer/leak/dynamic/ya.make b/library/cpp/sanitizer/leak/dynamic/ya.make new file mode 100644 index 0000000000..8e2ce1d484 --- /dev/null +++ b/library/cpp/sanitizer/leak/dynamic/ya.make @@ -0,0 +1,20 @@ +DYNAMIC_LIBRARY() + +OWNER(g:devtools-contrib) + +NO_UTIL() + +EXPORT_ALL_DYNAMIC_SYMBOLS() + +IF (CLANG16) +DYNAMIC_LIBRARY_FROM( + contrib/libs/clang16-rt/lib/lsan +) +ELSE() +DYNAMIC_LIBRARY_FROM( + contrib/libs/clang14-rt/lib/lsan +) +ENDIF() + +END() + diff --git a/library/cpp/sanitizer/leak/static/ya.make b/library/cpp/sanitizer/leak/static/ya.make new file mode 100644 index 0000000000..9272d9a4ce --- /dev/null +++ b/library/cpp/sanitizer/leak/static/ya.make @@ -0,0 +1,18 @@ +LIBRARY() + +OWNER(g:devtools-contrib) + +NO_UTIL() + +IF (CLANG16) +PEERDIR( + contrib/libs/clang16-rt/lib/lsan +) +ELSE() +PEERDIR( + contrib/libs/clang14-rt/lib/lsan +) +ENDIF() + +END() + diff --git a/library/cpp/sanitizer/memory/static/ya.make b/library/cpp/sanitizer/memory/static/ya.make new file mode 100644 index 0000000000..e92ac3124e --- /dev/null +++ b/library/cpp/sanitizer/memory/static/ya.make @@ -0,0 +1,20 @@ +LIBRARY() + +OWNER(g:devtools-contrib) + +NO_UTIL() + +IF (CLANG16) +PEERDIR( + contrib/libs/clang16-rt/lib/msan + contrib/libs/clang16-rt/lib/msan_cxx +) +ELSE() +PEERDIR( + contrib/libs/clang14-rt/lib/msan + contrib/libs/clang14-rt/lib/msan_cxx +) +ENDIF() + +END() + diff --git a/library/cpp/sanitizer/thread/dynamic/ya.make b/library/cpp/sanitizer/thread/dynamic/ya.make new file mode 100644 index 0000000000..b73caed25f --- /dev/null +++ b/library/cpp/sanitizer/thread/dynamic/ya.make @@ -0,0 +1,22 @@ +DYNAMIC_LIBRARY() + +OWNER(g:devtools-contrib) + +NO_UTIL() + +EXPORT_ALL_DYNAMIC_SYMBOLS() + +IF (CLANG16) +DYNAMIC_LIBRARY_FROM( + contrib/libs/clang14-rt/lib/tsan + contrib/libs/clang14-rt/lib/tsan_cxx +) +ELSE() +DYNAMIC_LIBRARY_FROM( + contrib/libs/clang14-rt/lib/tsan + contrib/libs/clang14-rt/lib/tsan_cxx +) +ENDIF() + +END() + diff --git a/library/cpp/sanitizer/thread/static/ya.make b/library/cpp/sanitizer/thread/static/ya.make new file mode 100644 index 0000000000..a4b04d7758 --- /dev/null +++ b/library/cpp/sanitizer/thread/static/ya.make @@ -0,0 +1,20 @@ +LIBRARY() + +OWNER(g:devtools-contrib) + +NO_UTIL() + +IF (CLANG16) +PEERDIR( + contrib/libs/clang16-rt/lib/tsan + contrib/libs/clang16-rt/lib/tsan_cxx +) +ELSE() +PEERDIR( + contrib/libs/clang14-rt/lib/tsan + contrib/libs/clang14-rt/lib/tsan_cxx +) +ENDIF() + +END() + diff --git a/library/cpp/sanitizer/undefined/dynamic/ya.make b/library/cpp/sanitizer/undefined/dynamic/ya.make new file mode 100644 index 0000000000..b7f2ee9a20 --- /dev/null +++ b/library/cpp/sanitizer/undefined/dynamic/ya.make @@ -0,0 +1,22 @@ +DYNAMIC_LIBRARY() + +OWNER(g:devtools-contrib) + +NO_UTIL() + +EXPORT_ALL_DYNAMIC_SYMBOLS() + +IF (CLANG16) +DYNAMIC_LIBRARY_FROM( + contrib/libs/clang16-rt/lib/ubsan_standalone + contrib/libs/clang16-rt/lib/ubsan_standalone_cxx +) +ELSE() +DYNAMIC_LIBRARY_FROM( + contrib/libs/clang14-rt/lib/ubsan_standalone + contrib/libs/clang14-rt/lib/ubsan_standalone_cxx +) +ENDIF() + +END() + diff --git a/library/cpp/sanitizer/undefined/static/ya.make b/library/cpp/sanitizer/undefined/static/ya.make new file mode 100644 index 0000000000..777db2f897 --- /dev/null +++ b/library/cpp/sanitizer/undefined/static/ya.make @@ -0,0 +1,20 @@ +LIBRARY() + +OWNER(g:devtools-contrib) + +NO_UTIL() + +IF (CLANG16) + PEERDIR( + contrib/libs/clang16-rt/lib/ubsan_standalone + contrib/libs/clang16-rt/lib/ubsan_standalone_cxx + ) +ELSE() + PEERDIR( + contrib/libs/clang14-rt/lib/ubsan_standalone + contrib/libs/clang14-rt/lib/ubsan_standalone_cxx + ) +ENDIF() + +END() + diff --git a/library/cpp/sanitizer/ya.make b/library/cpp/sanitizer/ya.make new file mode 100644 index 0000000000..4df4949b3a --- /dev/null +++ b/library/cpp/sanitizer/ya.make @@ -0,0 +1,19 @@ +IF (OS_LINUX) + RECURSE( + address/static + leak/static + memory/static + thread/static + undefined/static + ) +ENDIF() + +IF (OS_DARWIN) + RECURSE( + address/dynamic + leak/dynamic + thread/dynamic + undefined/dynamic + ) +ENDIF() + |