mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Script optimization maintenance and updates:
maintenance fixes for variadic run-time checks, '_' placeholder identifier "-O allow-cond" permits compiling scripts to C++ when influenced by @if conditionals more robust standalone compile-to-C++ properties fix for nested "when" statements test suite updates
This commit is contained in:
parent
bc0284aefa
commit
ee0a6f6835
40 changed files with 257 additions and 158 deletions
|
@ -278,6 +278,7 @@ static void init_options()
|
|||
check_env_opt("ZEEK_COMPILE_ALL", analysis_options.compile_all);
|
||||
check_env_opt("ZEEK_REPORT_CPP", analysis_options.report_CPP);
|
||||
check_env_opt("ZEEK_USE_CPP", analysis_options.use_CPP);
|
||||
check_env_opt("ZEEK_ALLOW_COND", analysis_options.allow_cond);
|
||||
|
||||
if ( analysis_options.gen_standalone_CPP || analysis_options.add_CPP )
|
||||
analysis_options.gen_CPP = true;
|
||||
|
@ -288,6 +289,10 @@ 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++\"");
|
||||
|
||||
auto usage = getenv("ZEEK_USAGE_ISSUES");
|
||||
|
||||
if ( usage )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue