diff options
author | Josh Haberman <jhaberman@gmail.com> | 2019-03-20 09:12:13 -0700 |
---|---|---|
committer | Josh Haberman <jhaberman@gmail.com> | 2019-03-20 09:49:05 -0700 |
commit | e86e1986901fd695085a6e08be196606a8069b29 (patch) | |
tree | 9173abc9206e684d2959b7d5ba9a3c489fc654f7 /BUILD | |
parent | 9cd426495e9ce11e8896a576601fab97052276c4 (diff) |
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.
Diffstat (limited to 'BUILD')
-rw-r--r-- | BUILD | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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", ], |