diff options
author | innokentii <innokentii@yandex-team.com> | 2024-02-16 20:10:55 +0300 |
---|---|---|
committer | innokentii <innokentii@yandex-team.com> | 2024-02-16 20:25:26 +0300 |
commit | 3ce9cf4c333518fc721cc89f404c835ba63411d8 (patch) | |
tree | 4e48459e2137197712dea748393473287e70ec26 /contrib/libs/grpc/src | |
parent | ce3d6ca3ea728ae0ddc30aba2e1ee88a6f79985a (diff) | |
download | ydb-3ce9cf4c333518fc721cc89f404c835ba63411d8.tar.gz |
Make PROTOC_TRANSITIVE_HEADERS=no compatible with GRPC()
add new deps to protobuf out
done with grpc
done with pb
fix
add patch to make intransitive pb compatible with grpc
60ab6319b92d29a98a74971c6906cd8eea1aab1e
Diffstat (limited to 'contrib/libs/grpc/src')
-rw-r--r-- | contrib/libs/grpc/src/compiler/cpp_generator.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/libs/grpc/src/compiler/cpp_generator.cc b/contrib/libs/grpc/src/compiler/cpp_generator.cc index 52e3a61ac6..d8e4b3b609 100644 --- a/contrib/libs/grpc/src/compiler/cpp_generator.cc +++ b/contrib/libs/grpc/src/compiler/cpp_generator.cc @@ -114,6 +114,9 @@ TString GetHeaderPrologue(grpc_generator::File* file, printer->Print(vars, "#pragma GCC system_header\n"); printer->Print(vars, "#endif\n"); printer->Print(vars, "\n"); + printer->Print(vars, "#if __has_include(\"$filename_base$.deps$message_header_ext$\")\n"); + printer->Print(vars, "#include \"$filename_base$.deps$message_header_ext$\"\n"); + printer->Print(vars, "#endif\n"); printer->Print(vars, "#include \"$filename_base$$message_header_ext$\"\n"); printer->Print(vars, file->additional_headers().c_str()); printer->Print(vars, "\n"); |