commit | 467e2b5e3b41d6822a8ebbda313d54bc12b8c584 | [log] [tgz] |
---|---|---|
author | Protobuf Team Bot <protobuf-github-bot@google.com> | Wed Sep 07 16:24:00 2022 -0700 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Sep 07 16:24:38 2022 -0700 |
tree | 0c799d9e33d437aea00dff26dd9f53e46e7acd62 | |
parent | 4215bc82eaca8d7ac361bf1aeb80045258d5a4cf [diff] |
Fix public import header generation. PiperOrigin-RevId: 472841214
diff --git a/upbc/protoc-gen-upb.cc b/upbc/protoc-gen-upb.cc index d04b1f6..24ac89d 100644 --- a/upbc/protoc-gen-upb.cc +++ b/upbc/protoc-gen-upb.cc
@@ -896,7 +896,7 @@ if (i == 0) { output("/* Public Imports. */\n"); } - output("#include \"$0\"\n", HeaderFilename(file)); + output("#include \"$0\"\n", HeaderFilename(file->public_dependency(i))); if (i == file->public_dependency_count() - 1) { output("\n"); }