From 5f575995b56f2ae97d3b9f5dc1efef233def7419 Mon Sep 17 00:00:00 2001 From: Josh Haberman Date: Mon, 12 Nov 2018 21:21:20 -0800 Subject: Added upb compiler written in C++ as a normal protoc plugin. --- upbc/main.cc | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 upbc/main.cc (limited to 'upbc/main.cc') diff --git a/upbc/main.cc b/upbc/main.cc new file mode 100644 index 0000000..a9682a9 --- /dev/null +++ b/upbc/main.cc @@ -0,0 +1,9 @@ + +#include + +#include "upbc/generator.h" + +int main(int argc, char** argv) { + return google::protobuf::compiler::PluginMain(argc, argv, + upbc::GetGenerator().get()); +} -- cgit v1.2.3