blob: 82ba9238eee2a5d86792c086a86c3cbf0dc66b4a [file] [log] [blame]
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include "google/protobuf/compiler/command_line_interface.h"
#include "absl/log/initialize.h"
// Must be included last.
#include "google/protobuf/port_def.inc"
namespace google {
namespace protobuf {
namespace compiler {
// This is a version of protoc that has no built-in code generators.
// See go/protobuf-toolchain-protoc
int ProtocMain(int argc, char* argv[]) {
#ifndef _MSC_VER
// TODO Re-enable this once github runner issue is resolved.
absl::InitializeLog();
#endif // !_MSC_VER
CommandLineInterface cli;
cli.AllowPlugins("protoc-");
return cli.Run(argc, argv);
}
} // namespace compiler
} // namespace protobuf
} // namespace google
int main(int argc, char* argv[]) {
return google::protobuf::compiler::ProtocMain(argc, argv);
}