aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tools/proto_text
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2016-07-25 07:39:52 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-07-25 08:47:47 -0700
commit2d1c32eade41eaf9b9baf88fd5f5aa56bfed3dc0 (patch)
treeefa06bd3a3587c260505c6f64a4eba50a3ed3941 /tensorflow/tools/proto_text
parentd8f832909b7a21f0eadef12ee5f1a11e0eb10a5a (diff)
Fix build non determinism in headers
Change: 128360267
Diffstat (limited to 'tensorflow/tools/proto_text')
-rw-r--r--tensorflow/tools/proto_text/gen_proto_text_functions_lib.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/tensorflow/tools/proto_text/gen_proto_text_functions_lib.cc b/tensorflow/tools/proto_text/gen_proto_text_functions_lib.cc
index ac5df77460..77484a4d52 100644
--- a/tensorflow/tools/proto_text/gen_proto_text_functions_lib.cc
+++ b/tensorflow/tools/proto_text/gen_proto_text_functions_lib.cc
@@ -786,9 +786,7 @@ void Generator::Generate(const FileDescriptor& fd) {
}
headers.push_back(GetProtoHeaderName(*d));
}
- for (const auto& h : headers) {
- Print("#include \"", h, "\"");
- }
+ AddHeadersToCurrentSection(headers);
AddNamespaceToCurrentSection(package, true /* is_open */);
SetOutput(&header_impl_).Print().Print("namespace internal {");