diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2018-11-15 10:14:36 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-15 10:14:36 -0800 |
commit | cb113bc8ccbf4357d4a3a43c8d1592d9f40bd70d (patch) | |
tree | 2275cab3e510d488354e341346b30928d142896b /upbc/main.cc | |
parent | d4e78f9fdff9ad14a0e8e3ad5d7d8379ee2124ef (diff) | |
parent | 9ce4a77f61c134bbed28bfd5be5cd7dc0e80f5e3 (diff) |
Merge pull request #134 from haberman/upbc-cpp
Added upb compiler written in C++ as a normal protoc plugin.
Diffstat (limited to 'upbc/main.cc')
-rw-r--r-- | upbc/main.cc | 9 |
1 files changed, 9 insertions, 0 deletions
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 <google/protobuf/compiler/plugin.h> + +#include "upbc/generator.h" + +int main(int argc, char** argv) { + return google::protobuf::compiler::PluginMain(argc, argv, + upbc::GetGenerator().get()); +} |