mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 07:08:19 +00:00
introduced simplified initialization for non-standalone -O gen-C++ code
tied -O gen-standalone-C++ to use of --optimize-files
This commit is contained in:
parent
612d99e751
commit
2e69a8870a
11 changed files with 189 additions and 56 deletions
|
@ -60,6 +60,11 @@ void GenFinishInit();
|
|||
// Generate the function that registers compiled script bodies.
|
||||
void GenRegisterBodies();
|
||||
|
||||
public:
|
||||
// Whether we're generating "standalone" code.
|
||||
bool TargetingStandalone() const { return standalone; }
|
||||
|
||||
private:
|
||||
// True if the given function (plus body and profile) is one that should be
|
||||
// compiled. If non-nil, sets reason to the the reason why, if there's a
|
||||
// fundamental problem. If however the function should be skipped for other
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue