aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-18 21:42:41 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-02-18 21:42:41 +0300
commit5291e2f6c447d149f3dc17006419bc7411478148 (patch)
tree2925d1a7aa1a894f7514fb2181414837e3990799 /contrib
parent68155b41eaf4cc306f8286e7ce8da6f6af7d93f5 (diff)
downloadydb-5291e2f6c447d149f3dc17006419bc7411478148.tar.gz
intermediate changes
ref:4ec759a52592995211dfd2877771c14eb231e31b
Diffstat (limited to 'contrib')
-rw-r--r--contrib/libs/grpc/src/core/lib/iomgr/tcp_server_posix.cc4
-rw-r--r--contrib/libs/llvm12/utils/TableGen/CMakeLists.txt8
-rw-r--r--contrib/tools/protoc/bin/CMakeLists.txt8
-rw-r--r--contrib/tools/protoc/plugins/cpp_styleguide/CMakeLists.txt8
-rw-r--r--contrib/tools/protoc/plugins/grpc_cpp/CMakeLists.txt8
5 files changed, 36 insertions, 0 deletions
diff --git a/contrib/libs/grpc/src/core/lib/iomgr/tcp_server_posix.cc b/contrib/libs/grpc/src/core/lib/iomgr/tcp_server_posix.cc
index b3f3febe63..5a3c3cf5a3 100644
--- a/contrib/libs/grpc/src/core/lib/iomgr/tcp_server_posix.cc
+++ b/contrib/libs/grpc/src/core/lib/iomgr/tcp_server_posix.cc
@@ -38,6 +38,7 @@
#include <unistd.h>
#include <util/generic/string.h>
+#include <util/system/yassert.h>
#include "y_absl/strings/str_cat.h"
#include "y_absl/strings/str_format.h"
@@ -210,6 +211,9 @@ static void on_read(void* arg, grpc_error* err) {
case EAGAIN:
grpc_fd_notify_on_read(sp->emfd, &sp->read_closure);
return;
+ case EMFILE:
+ case ENFILE:
+ Y_FAIL("grpc failed accept4: %s", strerror(errno));
default:
gpr_mu_lock(&sp->server->mu);
if (!sp->server->shutdown_listeners) {
diff --git a/contrib/libs/llvm12/utils/TableGen/CMakeLists.txt b/contrib/libs/llvm12/utils/TableGen/CMakeLists.txt
index e15ce1d506..04005c42af 100644
--- a/contrib/libs/llvm12/utils/TableGen/CMakeLists.txt
+++ b/contrib/libs/llvm12/utils/TableGen/CMakeLists.txt
@@ -66,6 +66,14 @@ target_sources(llvm-tblgen PRIVATE
)
target_link_flags(llvm-tblgen
PUBLIC
+ -ldl
+ -lrt
+ -Wl,--no-as-needed
+ -fPIC
+ -Wl,--gdb-index
+ -fPIC
+ -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld
+ -Wl,--no-rosegment
-lpthread
-lrt
-ldl
diff --git a/contrib/tools/protoc/bin/CMakeLists.txt b/contrib/tools/protoc/bin/CMakeLists.txt
index fce0c3e05b..45a7af900d 100644
--- a/contrib/tools/protoc/bin/CMakeLists.txt
+++ b/contrib/tools/protoc/bin/CMakeLists.txt
@@ -10,6 +10,14 @@ target_sources(protoc PRIVATE
)
target_link_flags(protoc
PUBLIC
+ -ldl
+ -lrt
+ -Wl,--no-as-needed
+ -fPIC
+ -Wl,--gdb-index
+ -fPIC
+ -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld
+ -Wl,--no-rosegment
-lpthread
-lrt
-ldl
diff --git a/contrib/tools/protoc/plugins/cpp_styleguide/CMakeLists.txt b/contrib/tools/protoc/plugins/cpp_styleguide/CMakeLists.txt
index 6cd1298c22..d75d00ca43 100644
--- a/contrib/tools/protoc/plugins/cpp_styleguide/CMakeLists.txt
+++ b/contrib/tools/protoc/plugins/cpp_styleguide/CMakeLists.txt
@@ -10,6 +10,14 @@ target_sources(cpp_styleguide PRIVATE
)
target_link_flags(cpp_styleguide
PUBLIC
+ -ldl
+ -lrt
+ -Wl,--no-as-needed
+ -fPIC
+ -Wl,--gdb-index
+ -fPIC
+ -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld
+ -Wl,--no-rosegment
-lpthread
-lrt
-ldl
diff --git a/contrib/tools/protoc/plugins/grpc_cpp/CMakeLists.txt b/contrib/tools/protoc/plugins/grpc_cpp/CMakeLists.txt
index 5fdb257c23..ea9e6a8069 100644
--- a/contrib/tools/protoc/plugins/grpc_cpp/CMakeLists.txt
+++ b/contrib/tools/protoc/plugins/grpc_cpp/CMakeLists.txt
@@ -17,6 +17,14 @@ target_sources(grpc_cpp PRIVATE
)
target_link_flags(grpc_cpp
PUBLIC
+ -ldl
+ -lrt
+ -Wl,--no-as-needed
+ -fPIC
+ -Wl,--gdb-index
+ -fPIC
+ -fuse-ld=$(LLD_ROOT-sbr:2283360772)/ld
+ -Wl,--no-rosegment
-lpthread
-lrt
-ldl