extended "-O allow-cond" to apply to both gen-C++ and gen-standalone-C++

This commit is contained in:
Vern Paxson 2024-09-11 16:30:01 +02:00 committed by Christian Kreibich
parent 5c38f7637d
commit a68ffc5316

View file

@ -294,8 +294,8 @@ static void init_options() {
if ( analysis_options.use_CPP && generating_CPP )
reporter->FatalError("generating C++ incompatible with using C++");
if ( analysis_options.allow_cond && ! analysis_options.gen_standalone_CPP )
reporter->FatalError("\"-O allow-cond\" only relevant when also using \"-O gen-standalone-C++\"");
if ( analysis_options.allow_cond && ! generating_CPP )
reporter->FatalError("\"-O allow-cond\" only relevant when using \"-O gen-C++\" or \"-O gen-standalone-C++\"");
auto usage = getenv("ZEEK_USAGE_ISSUES");