From e86e1986901fd695085a6e08be196606a8069b29 Mon Sep 17 00:00:00 2001 From: Josh Haberman Date: Wed, 20 Mar 2019 09:12:13 -0700 Subject: Changed enums to be open int32_t. This also fixes a bug where generated code wouldn't compile if the field's enum was defined in another file. --- BUILD | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'BUILD') diff --git a/BUILD b/BUILD index db2c6e0..c09b74f 100644 --- a/BUILD +++ b/BUILD @@ -237,10 +237,19 @@ cc_test( proto_library( name = "test_json_proto", - srcs = ["tests/json/test.proto"], + srcs = [ + "tests/json/test.proto", + "tests/json/enum_from_separate_file.proto", + ], ) upb_proto_reflection_library( + name = "test_json_upbprotoreflection", + upbc = ":protoc-gen-upb", + deps = ["test_json_proto"], +) + +upb_proto_library( name = "test_json_upbproto", upbc = ":protoc-gen-upb", deps = ["test_json_proto"], @@ -252,7 +261,7 @@ cc_test( "tests/json/test_json.cc", ], deps = [ - ":test_json_upbproto", + ":test_json_upbprotoreflection", ":upb_json", ":upb_test", ], -- cgit v1.2.3