mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-10 07:06:26 +00:00
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:
committed by
Wouter van Oortmerssen
parent
f9ebfcb9c4
commit
107c08988a
@@ -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[] = {
|
||||
|
||||
Reference in New Issue
Block a user