Set default CRTReportMode for the flatc target (#5336)

* Set default CRTReportMode for the `flatc` target

* Add util.cpp to GRPC test target

* Fix path to util.h
This commit is contained in:
Vladimir Glavnyy
2019-05-10 00:10:10 +07:00
committed by Wouter van Oortmerssen
parent f9ebfcb9c4
commit 107c08988a
6 changed files with 37 additions and 17 deletions

View File

@@ -15,6 +15,7 @@
*/
#include "flatbuffers/flatc.h"
#include "flatbuffers/util.h"
static const char *g_program_name = nullptr;
@@ -34,6 +35,9 @@ static void Error(const flatbuffers::FlatCompiler *flatc,
}
int main(int argc, const char *argv[]) {
// Prevent Appveyor-CI hangs.
flatbuffers::SetupDefaultCRTReportMode();
g_program_name = argv[0];
const flatbuffers::FlatCompiler::Generator generators[] = {