z_01-link-to-transitive-deps-if-found.patch 774 B

12345678910111213
  1. diff --color -bur a/src/compiler/cpp_generator.cc b/src/compiler/cpp_generator.cc
  2. --- a/src/compiler/cpp_generator.cc 2024-02-12 19:56:01.762336340 +0000
  3. +++ b/src/compiler/cpp_generator.cc 2024-02-12 19:57:43.263920796 +0000
  4. @@ -114,6 +114,9 @@
  5. printer->Print(vars, "#pragma GCC system_header\n");
  6. printer->Print(vars, "#endif\n");
  7. printer->Print(vars, "\n");
  8. + printer->Print(vars, "#if __has_include(\"$filename_base$.deps$message_header_ext$\")\n");
  9. + printer->Print(vars, "#include \"$filename_base$.deps$message_header_ext$\"\n");
  10. + printer->Print(vars, "#endif\n");
  11. printer->Print(vars, "#include \"$filename_base$$message_header_ext$\"\n");
  12. printer->Print(vars, file->additional_headers().c_str());
  13. printer->Print(vars, "\n");