summaryrefslogtreecommitdiff
path: root/BUILD
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2019-03-20 09:12:13 -0700
committerJosh Haberman <jhaberman@gmail.com>2019-03-20 09:49:05 -0700
commite86e1986901fd695085a6e08be196606a8069b29 (patch)
tree9173abc9206e684d2959b7d5ba9a3c489fc654f7 /BUILD
parent9cd426495e9ce11e8896a576601fab97052276c4 (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--BUILD13
1 files changed, 11 insertions, 2 deletions
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",
],
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback